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:
Feng Wei 2012-07-05 13:03:45 +08:00 committed by Arun Raghavan
parent c19d108219
commit dae4b83dd0
3 changed files with 105 additions and 16 deletions

View file

@ -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 {