Commit a9aba401 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: favor channel maps with fewer unused channels

parent ec329647
......@@ -241,7 +241,8 @@ static unsigned SetupChannels (vlc_object_t *obj, snd_pcm_t *pcm,
if (chans == -1)
continue;
unsigned score = popcount (chans & *mask);
unsigned score = (popcount (chans & *mask) << 8)
| (255 - popcount (chans));
if (score > best_score)
{
best_offset = p - maps;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment