aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-03-06 18:03:09 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-17 16:18:06 -0400
commit2831d8427cace563767cb802de05db28c4c6f894 (patch)
tree4aa7b0650da280bedd2529e1cb60560da4706a7e /drivers/gpu/drm
parentdef27a58291f389d2c351ebf32ef5bb064587635 (diff)
drm/i915: disable sound first on intel_disable_ddi
Our mode set sequence documentation says audio must be disabled first. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> [danvet: Resolve conflict since the first patch in this series isn't applied yet. Also bikeshed commit message as suggested by Ben.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 56bb7cb78263..b49df7d9d235 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1341,15 +1341,15 @@ static void intel_disable_ddi(struct intel_encoder *intel_encoder)
1341 struct drm_i915_private *dev_priv = dev->dev_private; 1341 struct drm_i915_private *dev_priv = dev->dev_private;
1342 uint32_t tmp; 1342 uint32_t tmp;
1343 1343
1344 tmp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
1345 tmp &= ~((AUDIO_OUTPUT_ENABLE_A | AUDIO_ELD_VALID_A) << (pipe * 4));
1346 I915_WRITE(HSW_AUD_PIN_ELD_CP_VLD, tmp);
1347
1344 if (type == INTEL_OUTPUT_EDP) { 1348 if (type == INTEL_OUTPUT_EDP) {
1345 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); 1349 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
1346 1350
1347 ironlake_edp_backlight_off(intel_dp); 1351 ironlake_edp_backlight_off(intel_dp);
1348 } 1352 }
1349
1350 tmp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
1351 tmp &= ~((AUDIO_OUTPUT_ENABLE_A | AUDIO_ELD_VALID_A) << (pipe * 4));
1352 I915_WRITE(HSW_AUD_PIN_ELD_CP_VLD, tmp);
1353} 1353}
1354 1354
1355int intel_ddi_get_cdclk_freq(struct drm_i915_private *dev_priv) 1355int intel_ddi_get_cdclk_freq(struct drm_i915_private *dev_priv)