aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2014-10-27 10:26:50 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-11-04 17:22:12 -0500
commit69bfe1a9b4dffca482c6cd7f1e218f24a1128dcc (patch)
treeeda68ee0ef08ccc4e3e73fcc69ea33d0de6267f0 /drivers/gpu/drm/i915/i915_drv.h
parent2aa0de39fa071129fdd952a0d99828db8434d88f (diff)
drm/i915: introduce intel_audio_codec_{enable, disable}
Introduce functions to enable/disable the audio codec, incorporating the ELD setup within enable. The disable is initially limited to HSW, covering exactly what was done previously. The only functional difference is that ELD valid is no longer set if there is no connector with ELD, which should be the right thing to do anyway. Otherwise the sequence remains the same, with warts and all, in preparation for applying more sanity. v2: add kernel doc. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 6a73803482cb..0344fd561789 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -483,9 +483,10 @@ struct drm_i915_display_funcs {
483 void (*crtc_enable)(struct drm_crtc *crtc); 483 void (*crtc_enable)(struct drm_crtc *crtc);
484 void (*crtc_disable)(struct drm_crtc *crtc); 484 void (*crtc_disable)(struct drm_crtc *crtc);
485 void (*off)(struct drm_crtc *crtc); 485 void (*off)(struct drm_crtc *crtc);
486 void (*write_eld)(struct drm_connector *connector, 486 void (*audio_codec_enable)(struct drm_connector *connector,
487 struct intel_encoder *encoder, 487 struct intel_encoder *encoder,
488 struct drm_display_mode *mode); 488 struct drm_display_mode *mode);
489 void (*audio_codec_disable)(struct intel_encoder *encoder);
489 void (*fdi_link_train)(struct drm_crtc *crtc); 490 void (*fdi_link_train)(struct drm_crtc *crtc);
490 void (*init_clock_gating)(struct drm_device *dev); 491 void (*init_clock_gating)(struct drm_device *dev);
491 int (*queue_flip)(struct drm_device *dev, struct drm_crtc *crtc, 492 int (*queue_flip)(struct drm_device *dev, struct drm_crtc *crtc,