alsa: Add "exact-channels" mapping configurability

Allow a mapping to relax the exact channel restriction:

exact-channels = yes | no # If no, and the exact number of channels is not supported,
                          # allow device to be opened with another channel count

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2014-07-25 14:57:55 +02:00
parent afbe9605c6
commit be8311417c
3 changed files with 42 additions and 4 deletions

View file

@ -264,6 +264,7 @@ struct pa_alsa_mapping {
pa_alsa_path_set *output_path_set;
unsigned supported;
bool exact_channels:1;
/* Temporarily used during probing */
snd_pcm_t *input_pcm;