[Intel-gfx] [PATCH] drm/i915: set the right SDVO transcoder for CPT

przanoni at gmail.com przanoni at gmail.com
Thu Oct 13 14:49:19 CEST 2011


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

Fixes fd.o #41272

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 drivers/gpu/drm/i915/intel_sdvo.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

It would be nice to have this in Kernel 3.1 too

diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index aa94110..c66c0b4 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1080,8 +1080,16 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder,
 		}
 		sdvox |= (9 << 19) | SDVO_BORDER_ENABLE;
 	}
-	if (intel_crtc->pipe == 1)
+
+	if (intel_sdvo->sdvo_reg == PCH_SDVOB) {
+	    if (HAS_PCH_IBX(dev))
+		sdvox |= TRANSCODER(intel_crtc->pipe);
+	    else
+		sdvox |= PORT_TRANS_SEL_CPT(intel_crtc->pipe);
+	} else if (intel_crtc->pipe == 1) {
 		sdvox |= SDVO_PIPE_B_SELECT;
+	}
+
 	if (intel_sdvo->has_hdmi_audio)
 		sdvox |= SDVO_AUDIO_ENABLE;
 
-- 
1.7.6.3




More information about the Intel-gfx mailing list