From 86719178c41db9670e90503b788edb84c131ae2e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 2 May 2011 14:06:23 +0000 Subject: main/xf86-video-openchrome: add fixes from upstreram --- .../openchrome-0.2.904-fix_tvout_flickering.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main/xf86-video-openchrome/openchrome-0.2.904-fix_tvout_flickering.patch (limited to 'main/xf86-video-openchrome/openchrome-0.2.904-fix_tvout_flickering.patch') diff --git a/main/xf86-video-openchrome/openchrome-0.2.904-fix_tvout_flickering.patch b/main/xf86-video-openchrome/openchrome-0.2.904-fix_tvout_flickering.patch new file mode 100644 index 0000000000..7a7b5d8a88 --- /dev/null +++ b/main/xf86-video-openchrome/openchrome-0.2.904-fix_tvout_flickering.patch @@ -0,0 +1,35 @@ +Index: src/via_vt162x.c +=================================================================== +--- a/src/via_vt162x.c (revision 787) ++++ b/src/via_vt162x.c (revision 786) +@@ -684,30 +650,11 @@ VT1622ModeI2C(ScrnInfoPtr pScrn, DisplayModePtr mo + xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x2B, Table.RGB[4]); + if (Table.RGB[5]) + xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x2C, Table.RGB[5]); +- if (pBIOSInfo->TVEncoder == VIA_VT1625) { +- if (pBIOSInfo->TVType < TVTYPE_480P) { +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x02, 0x12); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x23, 0x7E); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x4A, 0x85); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x4B, 0x0A); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x4E, 0x00); +- } else { +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x02, 0x12); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x4A, 0x85); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x4B, 0x0A); +- } +- } + } else if (pBIOSInfo->TVOutput == TVOUTPUT_YCBCR) { + xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x02, 0x03); + xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x65, Table.YCbCr[0]); + xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x66, Table.YCbCr[1]); + xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x67, Table.YCbCr[2]); +- if (pBIOSInfo->TVEncoder == VIA_VT1625) { +- if (pBIOSInfo->TVType < TVTYPE_480P) { +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x23, 0x7E); +- xf86I2CWriteByte(pBIOSInfo->TVI2CDev, 0x4E, 0x00); +- } +- } + } + + /* Configure flicker filter. */ -- cgit v1.2.3