alsa: Allow "fallback" configuration for mappings and profiles

A fallback mapping or profile will only be considered for probing
if all non-fallback profiles fail.

If auto-profiles are used, a profile made up of one non-fallback
mapping and one fallback mapping will be considered a fallback profile.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2014-07-25 15:05:45 +02:00
parent be8311417c
commit c15107eaf6
3 changed files with 78 additions and 4 deletions

View file

@ -265,6 +265,7 @@ struct pa_alsa_mapping {
unsigned supported;
bool exact_channels:1;
bool fallback:1;
/* Temporarily used during probing */
snd_pcm_t *input_pcm;
@ -285,6 +286,8 @@ struct pa_alsa_profile {
unsigned priority;
bool supported:1;
bool fallback_input:1;
bool fallback_output:1;
char **input_mapping_names;
char **output_mapping_names;