staging: xgifb: delete IF_DEF_LCDA
IF_DEF_LCDA is always true. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6e90d0570d
commit
31fb40fd13
2 changed files with 37 additions and 68 deletions
|
@ -258,15 +258,6 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo,
|
|||
}
|
||||
|
||||
if (pVBInfo->VBInfo & SetCRT2ToHiVision) { /* for HiTV */
|
||||
if ((pVBInfo->VBType & VB_SIS301LV) &&
|
||||
(pVBInfo->VBExtInfo == VB_YPbPr1080i)) {
|
||||
tempax |= SupportYPbPr750p;
|
||||
if ((pVBInfo->VBInfo & SetInSlaveMode) &&
|
||||
((resinfo == 3) ||
|
||||
(resinfo == 4) ||
|
||||
(resinfo > 7)))
|
||||
return 0;
|
||||
} else {
|
||||
tempax |= SupportHiVision;
|
||||
if ((pVBInfo->VBInfo & SetInSlaveMode) &&
|
||||
((resinfo == 4) ||
|
||||
|
@ -274,7 +265,6 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeNo,
|
|||
(pVBInfo->SetFlag & TVSimuMode)) ||
|
||||
(resinfo > 7)))
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
if (pVBInfo->VBInfo & (SetCRT2ToAVIDEO |
|
||||
SetCRT2ToSVIDEO |
|
||||
|
@ -969,13 +959,8 @@ static unsigned short XGI_GetVCLK2Ptr(unsigned short ModeNo,
|
|||
}
|
||||
|
||||
/* 301lv */
|
||||
if ((pVBInfo->VBType & VB_SIS301LV) &&
|
||||
!(pVBInfo->VBExtInfo == VB_YPbPr1080i)) {
|
||||
if (pVBInfo->VBExtInfo == YPbPr750p)
|
||||
VCLKIndex = XGI_YPbPr750pVCLK;
|
||||
else if (pVBInfo->VBExtInfo == YPbPr525p)
|
||||
VCLKIndex = YPbPr525pVCLK;
|
||||
else if (pVBInfo->SetFlag & RPLLDIV2XO)
|
||||
if (pVBInfo->VBType & VB_SIS301LV) {
|
||||
if (pVBInfo->SetFlag & RPLLDIV2XO)
|
||||
VCLKIndex = YPbPr525iVCLK_2;
|
||||
else
|
||||
VCLKIndex = YPbPr525iVCLK;
|
||||
|
@ -2634,8 +2619,6 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
|
|||
|
||||
temp = xgifb_reg_get(pVBInfo->P3d4, 0x38);
|
||||
|
||||
if (pVBInfo->IF_DEF_LCDA == 1) {
|
||||
|
||||
if (((HwDeviceExtension->jChipType >= XG20) ||
|
||||
(HwDeviceExtension->jChipType >= XG40)) &&
|
||||
(pVBInfo->IF_DEF_LVDS == 0)) {
|
||||
|
@ -2651,7 +2634,6 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (pVBInfo->IF_DEF_YPbPr == 1) {
|
||||
if (((pVBInfo->IF_DEF_LVDS == 0) &&
|
||||
|
@ -2702,7 +2684,6 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
|
|||
tempbx = 0;
|
||||
}
|
||||
|
||||
if (pVBInfo->IF_DEF_LCDA == 1) { /* Select Display Device */
|
||||
if (!(pVBInfo->VBType & VB_NoLCD)) {
|
||||
if (tempbx & XGI_SetCRT2ToLCDA) {
|
||||
if (tempbx & SetSimuScanMode)
|
||||
|
@ -2716,7 +2697,6 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
|
|||
SwitchCRT2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* shampoo add */
|
||||
/* for driver abnormal */
|
||||
|
@ -2777,12 +2757,10 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
|
|||
if (!(tempbx & DisableCRT2Display)) {
|
||||
if ((!(tempbx & DriverMode)) ||
|
||||
(!(modeflag & CRT2Mode))) {
|
||||
if (pVBInfo->IF_DEF_LCDA == 1) {
|
||||
if (!(tempbx & XGI_SetCRT2ToLCDA))
|
||||
tempbx |= (SetInSlaveMode |
|
||||
SetSimuScanMode);
|
||||
}
|
||||
}
|
||||
|
||||
/* LCD+TV can't support in slave mode
|
||||
* (Force LCDA+TV->LCDB) */
|
||||
|
@ -3841,17 +3819,10 @@ static void XGI_SetLockRegs(unsigned short ModeNo, unsigned short ModeIdIndex,
|
|||
| VB_SIS302LV | VB_XGI301C)))
|
||||
temp += 2;
|
||||
|
||||
if (pVBInfo->VBInfo & SetCRT2ToHiVision) {
|
||||
if (pVBInfo->VBType & VB_SIS301LV) {
|
||||
if (pVBInfo->VBExtInfo == VB_YPbPr1080i) {
|
||||
if (resinfo == 7)
|
||||
if ((pVBInfo->VBInfo & SetCRT2ToHiVision) &&
|
||||
!(pVBInfo->VBType & VB_SIS301LV) && (resinfo == 7))
|
||||
temp -= 2;
|
||||
}
|
||||
} else if (resinfo == 7) {
|
||||
temp -= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 0x05 Horizontal Display Start */
|
||||
xgifb_reg_set(pVBInfo->Part1Port, 0x05, temp);
|
||||
|
@ -6566,7 +6537,6 @@ unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info,
|
|||
struct vb_device_info *pVBInfo = &VBINF;
|
||||
pVBInfo->BaseAddr = xgifb_info->vga_base;
|
||||
pVBInfo->IF_DEF_LVDS = 0;
|
||||
pVBInfo->IF_DEF_LCDA = 1;
|
||||
|
||||
if (HwDeviceExtension->jChipType >= XG20) {
|
||||
pVBInfo->IF_DEF_YPbPr = 0;
|
||||
|
|
|
@ -168,11 +168,10 @@ struct vb_device_info {
|
|||
unsigned short ModeType;
|
||||
unsigned short IF_DEF_LVDS, IF_DEF_TRUMPION, IF_DEF_DSTN;
|
||||
unsigned short IF_DEF_CRT2Monitor;
|
||||
unsigned short IF_DEF_LCDA, IF_DEF_YPbPr;
|
||||
unsigned short IF_DEF_YPbPr;
|
||||
unsigned short IF_DEF_HiVision;
|
||||
unsigned short LCDResInfo, LCDTypeInfo, VBType;/*301b*/
|
||||
unsigned short VBInfo, TVInfo, LCDInfo;
|
||||
unsigned short VBExtInfo;/*301lv*/
|
||||
unsigned short SetFlag;
|
||||
unsigned short NewFlickerMode;
|
||||
unsigned short SelectCRT2Rate;
|
||||
|
|
Loading…
Add table
Reference in a new issue