[Intel-gfx] [PATCH 1/4] drm/i915: Add audio hotplug info callback

David Henningsson david.henningsson at canonical.com
Thu Jul 23 08:26:16 PDT 2015


This callback will be called by the i915 driver to notify the hda
driver that HDMI has been hotplugged.

Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 include/drm/i915_component.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h
index c9a8b64..d053008 100644
--- a/include/drm/i915_component.h
+++ b/include/drm/i915_component.h
@@ -26,6 +26,7 @@
 
 struct i915_audio_component {
 	struct device *dev;
+	void *audio_ptr;
 
 	const struct i915_audio_component_ops {
 		struct module *owner;
@@ -34,6 +35,10 @@ struct i915_audio_component {
 		void (*codec_wake_override)(struct device *, bool enable);
 		int (*get_cdclk_freq)(struct device *);
 	} *ops;
+
+	const struct i915_audio_component_audio_ops {
+		void (*hotplug_notify)(void *audio_ptr, int port, int port_mst_index);
+	} *audio_ops;
 };
 
 #endif /* _I915_COMPONENT_H_ */
-- 
1.7.9.5



More information about the Intel-gfx mailing list