aboutsummaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorLibin Yang2015-09-25 09:36:12 +0800
committerTakashi Iwai2015-09-25 10:05:05 +0200
commit7e8275c2f2bbb384e18af37066b8b2f32b7d092f (patch)
tree630cdd317a1df00c00146a7b89eb888ca67b408b /include/drm
parentddd621fbba35178643a39559c9688a373285bbc0 (diff)
drm/i915: set proper N/CTS in modeset
When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang <libin.yang@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/i915_component.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h
index e6d35d7239c0..89dc7d6bc1cc 100644
--- a/include/drm/i915_component.h
+++ b/include/drm/i915_component.h
@@ -24,8 +24,18 @@
#ifndef _I915_COMPONENT_H_
#define _I915_COMPONENT_H_
+/* MAX_PORT is the number of port
+ * It must be sync with I915_MAX_PORTS defined i915_drv.h
+ * 5 should be enough as only HSW, BDW, SKL need such fix.
+ */
+#define MAX_PORTS 5
+
struct i915_audio_component {
struct device *dev;
+ /**
+ * @aud_sample_rate: the array of audio sample rate per port
+ */
+ int aud_sample_rate[MAX_PORTS];
const struct i915_audio_component_ops {
struct module *owner;