updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / linux-pf / i915-fix-ghost-tv-output.patch
blob357fa6cbb8ba7e7701872ed73c60b2f13900d795
1 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2 Tested-by: Santi <santi@agolina.net>
3 ---
4 drivers/gpu/drm/i915/intel_tv.c | 9 +++++++++
5 1 files changed, 9 insertions(+), 0 deletions(-)
7 diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
8 index dc83b7a..c8f67bf 100644
9 --- a/drivers/gpu/drm/i915/intel_tv.c
10 +++ b/drivers/gpu/drm/i915/intel_tv.c
11 @@ -1267,6 +1267,15 @@
12 DAC_B_0_7_V |
13 DAC_C_0_7_V);
15 + /*
16 + * The TV sense state should be cleared to zero on cantiga platform. Otherwise
17 + * the TV is misdetected. This is hardware requirement.
18 + */
19 + if (IS_GM45(dev))
20 + tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL |
21 + TVDAC_B_SENSE_CTL | TVDAC_C_SENSE_CTL);
24 I915_WRITE(TV_CTL, tv_ctl);
25 I915_WRITE(TV_DAC, tv_dac);
26 POSTING_READ(TV_DAC);