mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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:
parent
be8311417c
commit
c15107eaf6
3 changed files with 78 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue