mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
alsa: Add UCM jack detection
Jack in UCM is decided by UCM device name, although in fact not all UCM devices have "jacks". Because port is also mapped to UCM device, we can always find target port when some jack event happens. Signed-off-by: Feng Wei <wei.feng@freescale.com>
This commit is contained in:
parent
c19d108219
commit
dae4b83dd0
3 changed files with 105 additions and 16 deletions
|
|
@ -121,6 +121,9 @@ struct pa_alsa_ucm_device {
|
|||
|
||||
pa_idxset *conflicting_devices;
|
||||
pa_idxset *supported_devices;
|
||||
|
||||
pa_alsa_jack *input_jack;
|
||||
pa_alsa_jack *output_jack;
|
||||
};
|
||||
|
||||
struct pa_alsa_ucm_modifier {
|
||||
|
|
@ -154,6 +157,7 @@ struct pa_alsa_ucm_config {
|
|||
pa_alsa_ucm_verb *active_verb;
|
||||
|
||||
PA_LLIST_HEAD(pa_alsa_ucm_verb, verbs);
|
||||
PA_LLIST_HEAD(pa_alsa_jack, jacks);
|
||||
};
|
||||
|
||||
struct pa_alsa_ucm_mapping_context {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue