Commit 2a8ceedf authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai

drm/i915: Add audio pin sense / ELD callback

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: default avatarDavid Henningsson <david.henningsson@canonical.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Acked-by: default avatarDaniel Vetter <daniel@ffwll.ch>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 08ceab9d
...@@ -34,6 +34,18 @@ struct i915_audio_component { ...@@ -34,6 +34,18 @@ struct i915_audio_component {
void (*codec_wake_override)(struct device *, bool enable); void (*codec_wake_override)(struct device *, bool enable);
int (*get_cdclk_freq)(struct device *); int (*get_cdclk_freq)(struct device *);
} *ops; } *ops;
const struct i915_audio_component_audio_ops {
void *audio_ptr;
/**
* Call from i915 driver, notifying the HDA driver that
* pin sense and/or ELD information has changed.
* @audio_ptr: HDA driver object
* @port: Which port has changed (PORTA / PORTB / PORTC etc)
* @port_mst_index: Index within that port, for DisplayPort multistreaming
*/
void (*pin_eld_notify)(void *audio_ptr, int port, int port_mst_index);
} *audio_ops;
}; };
#endif /* _I915_COMPONENT_H_ */ #endif /* _I915_COMPONENT_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment