diff options
author | David Henningsson <david.henningsson@canonical.com> | 2015-08-19 04:48:55 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-02 05:30:44 -0400 |
commit | 2a8ceedf787167e6b1670b89d44e8dffca14d19c (patch) | |
tree | 628f488d119f745eb87215355cb1ca5ff65e1f91 | |
parent | 08ceab9d875824f8b389530e830349d5d6c4e582 (diff) |
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: David Henningsson <david.henningsson@canonical.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/drm/i915_component.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h index c9a8b64aa33b..ab5bde3736b4 100644 --- a/include/drm/i915_component.h +++ b/include/drm/i915_component.h | |||
@@ -34,6 +34,18 @@ struct i915_audio_component { | |||
34 | void (*codec_wake_override)(struct device *, bool enable); | 34 | void (*codec_wake_override)(struct device *, bool enable); |
35 | int (*get_cdclk_freq)(struct device *); | 35 | int (*get_cdclk_freq)(struct device *); |
36 | } *ops; | 36 | } *ops; |
37 | |||
38 | const struct i915_audio_component_audio_ops { | ||
39 | void *audio_ptr; | ||
40 | /** | ||
41 | * Call from i915 driver, notifying the HDA driver that | ||
42 | * pin sense and/or ELD information has changed. | ||
43 | * @audio_ptr: HDA driver object | ||
44 | * @port: Which port has changed (PORTA / PORTB / PORTC etc) | ||
45 | * @port_mst_index: Index within that port, for DisplayPort multistreaming | ||
46 | */ | ||
47 | void (*pin_eld_notify)(void *audio_ptr, int port, int port_mst_index); | ||
48 | } *audio_ops; | ||
37 | }; | 49 | }; |
38 | 50 | ||
39 | #endif /* _I915_COMPONENT_H_ */ | 51 | #endif /* _I915_COMPONENT_H_ */ |