Commit 0903b0db authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: XGI_AjustCRT2Rate(): delete IF_DEF_LVDS check

IF_DEF_LVDS cannot be set when XGI_AjustCRT2Rate() is called, so we can
remove the check and dead code.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce76de5a
...@@ -183,7 +183,6 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo, ...@@ -183,7 +183,6 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo,
tempbx = XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID; tempbx = XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID;
tempax = 0; tempax = 0;
if (pVBInfo->IF_DEF_LVDS == 0) {
if (pVBInfo->VBInfo & SetCRT2ToRAMDAC) { if (pVBInfo->VBInfo & SetCRT2ToRAMDAC) {
tempax |= SupportRAMDAC2; tempax |= SupportRAMDAC2;
...@@ -206,22 +205,16 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo, ...@@ -206,22 +205,16 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo,
tempax |= SupportHiVision; tempax |= SupportHiVision;
if ((pVBInfo->VBInfo & SetInSlaveMode) && if ((pVBInfo->VBInfo & SetInSlaveMode) &&
((resinfo == 4) || ((resinfo == 4) ||
(resinfo == 3 && (resinfo == 3 && (pVBInfo->SetFlag & TVSimuMode)) ||
(pVBInfo->SetFlag & TVSimuMode)) ||
(resinfo > 7))) (resinfo > 7)))
return 0; return 0;
} else if (pVBInfo->VBInfo & (SetCRT2ToAVIDEO | } else if (pVBInfo->VBInfo & (SetCRT2ToAVIDEO | SetCRT2ToSVIDEO |
SetCRT2ToSVIDEO | SetCRT2ToSCART | SetCRT2ToYPbPr525750 |
SetCRT2ToSCART |
SetCRT2ToYPbPr525750 |
SetCRT2ToHiVision)) { SetCRT2ToHiVision)) {
tempax |= SupportTV; tempax |= SupportTV;
if (pVBInfo->VBType & (VB_SIS301B | if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B | VB_SIS301LV |
VB_SIS302B | VB_SIS302LV | VB_XGI301C))
VB_SIS301LV |
VB_SIS302LV |
VB_XGI301C))
tempax |= SupportTV1024; tempax |= SupportTV1024;
if (!(pVBInfo->VBInfo & TVSetPAL) && if (!(pVBInfo->VBInfo & TVSetPAL) &&
...@@ -230,20 +223,6 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo, ...@@ -230,20 +223,6 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo,
(!(pVBInfo->VBInfo & SetNotSimuMode))) (!(pVBInfo->VBInfo & SetNotSimuMode)))
return 0; return 0;
} }
} else if (pVBInfo->VBInfo & SetCRT2ToLCD) { /* for LVDS */
tempax |= SupportLCD;
if (resinfo > 0x08)
return 0; /* 1024x768 */
if (pVBInfo->LCDResInfo < Panel_1024x768) {
if (resinfo > 0x07)
return 0; /* 800x600 */
if (resinfo == 0x04)
return 0; /* 512x384 */
}
}
for (; XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID == for (; XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID ==
tempbx; (*i)--) { tempbx; (*i)--) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment