This callback will be called by the i915 driver to notify the hda driver that its HDMI information needs to be refreshed, i e, that audio output is now available (or unavailable) - usually as a result of a monitor being plugged in (or unplugged).
Signed-off-by: David Henningsson <david.hennings...@canonical.com> --- include/drm/i915_component.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h index c9a8b64..c0f4d45 100644 --- a/include/drm/i915_component.h +++ b/include/drm/i915_component.h @@ -34,6 +34,22 @@ 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 { + /** + * @audio_ptr: + * + * Pointer to pass when calling pin_eld_notify. + */ + void *audio_ptr; + /** + * @pin_eld_notify: + * + * Called from i915 driver, notifying the HDA driver that + * pin sense and/or ELD information has changed. + */ + void (*pin_eld_notify)(void *audio_ptr, int port); + } *audio_ops; }; #endif /* _I915_COMPONENT_H_ */ -- 1.9.1 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1490895 Title: Skylake/Broadwell/Haswell: No HDMI audio jack detection in D3 Status in linux package in Ubuntu: In Progress Bug description: This is a long-standing bug for some Haswell, Broadwell and most Skylake machines. When the HDA audio controller is in D3, a hotplug event (i e, HDMI or DisplayPort being plugged in) fails to wake up the audio side so it never registers that something has happened. By having the i915 driver call directly into the hda driver, the HDA driver is always notified that an HDMI hotplug event has happened. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1490895/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp