summaryrefslogtreecommitdiff
path: root/src/i830_tv.c
diff options
context:
space:
mode:
authorling.ma@intel.com <ling.ma@intel.com>2009-06-16 16:52:25 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2009-06-17 10:06:02 +0800
commitb5cd2130f97591f4a387db1b98c940c30bc6404c (patch)
treea1fa7f2b7de9ec16749e2d67fa2b088fae24c510 /src/i830_tv.c
parenta6cdcd9fee0164f79075063fd163d142a55fcbc5 (diff)
TV: Set correct voltage level override values
We detect TV connect status by setting DAC voltage level override values as 0.7 voltage for DAC_A/B/C. The corresponding 2-bits shold be 0x2, In order correctly to set last bit as 0, at first we must clean it. It fixed freedesktop.org bug #21204 Signed-off-by: Ma Ling <ling.ma@intel.com>
Diffstat (limited to 'src/i830_tv.c')
-rw-r--r--src/i830_tv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_tv.c b/src/i830_tv.c
index 8eb3e263..7082aba9 100644
--- a/src/i830_tv.c
+++ b/src/i830_tv.c
@@ -1386,6 +1386,9 @@ i830_tv_detect_type (xf86CrtcPtr crtc,
tv_ctl &= ~TV_TEST_MODE_MASK;
tv_ctl |= TV_TEST_MODE_MONITOR_DETECT;
tv_dac &= ~TVDAC_SENSE_MASK;
+ tv_dac &= ~DAC_A_MASK;
+ tv_dac &= ~DAC_B_MASK;
+ tv_dac &= ~DAC_C_MASK;
tv_dac |= (TVDAC_STATE_CHG_EN |
TVDAC_A_SENSE_CTL |
TVDAC_B_SENSE_CTL |