mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
alsa: adjust priority bonus of mappings that match the configured default channel map
We need to make sure that having both input and output weighs more for selecting the default profile than a channel map that matches the default channel map has. https://bugzilla.redhat.com/show_bug.cgi?id=496320
This commit is contained in:
parent
d27e26dca0
commit
462cdf44b7
1 changed files with 2 additions and 2 deletions
|
|
@ -2838,9 +2838,9 @@ static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {
|
|||
|
||||
if (bonus) {
|
||||
if (pa_channel_map_equal(&m->channel_map, bonus))
|
||||
m->priority += 5000;
|
||||
m->priority += 50;
|
||||
else if (m->channel_map.channels == bonus->channels)
|
||||
m->priority += 4000;
|
||||
m->priority += 30;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue