summaryrefslogtreecommitdiffstats
path: root/src/modules/module-alsa-sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-08 01:03:42 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-08 01:03:42 +0100
commitc2450501af82d1c9d1994e4f4ce80d506d3c90ae (patch)
treedc443a4862811e03663aa92b2f0ffb45b26b2f58 /src/modules/module-alsa-sink.c
parente67bc1d752f768efb556b57aff8be4e1d82b173b (diff)
Prefer mixer controls with volumes over switches
When we look for a mixer control prefer controls that have both volume and a mute switch over those that have only a volume switch over those that only have a mute switch. Originally pointed out by Adel Gadllah.
Diffstat (limited to 'src/modules/module-alsa-sink.c')
-rw-r--r--src/modules/module-alsa-sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c
index 6dea172f..95a8c972 100644
--- a/src/modules/module-alsa-sink.c
+++ b/src/modules/module-alsa-sink.c
@@ -1409,7 +1409,7 @@ int pa__init(pa_module*m) {
}
if (found)
- if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Master", "PCM")))
+ if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Master", "PCM", TRUE)))
found = FALSE;
if (!found) {