summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Xingchao <xingchao.wang@intel.com>2012-08-09 16:52:16 +0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-08-17 10:10:04 +0200
commit4f07854dd7fc197d9ea2bd83c26736baabb0b981 (patch)
tree401b0f4915dbd01f13e8324cc84eb8e782797cc7
parent9a78b6cce5ebb04ae1b2f99b6c9f5fa54a3428b0 (diff)
downloadlinux-4f07854dd7fc197d9ea2bd83c26736baabb0b981.tar.gz
linux-4f07854dd7fc197d9ea2bd83c26736baabb0b981.tar.bz2
linux-4f07854dd7fc197d9ea2bd83c26736baabb0b981.zip
drm/i915: write eld info for HDMI audio
HDMI audio related registers will be configured in write_eld callback. Signed-off-by: Wang Xingchao <xingchao.wang@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 958422606bc7..170e3861aa4e 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -713,8 +713,12 @@ void intel_ddi_mode_set(struct drm_encoder *encoder,
/* Proper support for digital audio needs a new logic and a new set
* of registers, so we leave it for future patch bombing.
*/
- DRM_DEBUG_DRIVER("HDMI audio on pipe %c not yet supported on DDI\n",
+ DRM_DEBUG_DRIVER("HDMI audio on pipe %c on DDI\n",
pipe_name(intel_crtc->pipe));
+
+ /* write eld */
+ DRM_DEBUG_DRIVER("HDMI audio: write eld information\n");
+ intel_write_eld(encoder, adjusted_mode);
}
/* Enable PIPE_DDI_FUNC_CTL for the pipe to work in HDMI mode */