summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2016-01-10 18:36:40 -0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-09-06 11:54:51 +0200
commit5df7963ad1c4cf624f479be5ba8245e762e388e0 (patch)
tree14e6be0b42e10949a49cc61dda831de53fb236ce
parent50030dc69346c209109c36bb41631b176c85b2c5 (diff)
emix: when in alsa mode only operate on master
-rw-r--r--src/modules/mixer/lib/backends/alsa/alsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/mixer/lib/backends/alsa/alsa.c b/src/modules/mixer/lib/backends/alsa/alsa.c
index bb06a2e1a..add473a15 100644
--- a/src/modules/mixer/lib/backends/alsa/alsa.c
+++ b/src/modules/mixer/lib/backends/alsa/alsa.c
@@ -302,6 +302,10 @@ _alsa_cards_refresh(void)
302 elem = snd_mixer_first_elem(mixer); 302 elem = snd_mixer_first_elem(mixer);
303 for (; elem; elem = snd_mixer_elem_next(elem)) 303 for (; elem; elem = snd_mixer_elem_next(elem))
304 { 304 {
305 if (strncmp(snd_mixer_selem_get_name(elem),
306 "Master", sizeof("Master") - 1))
307 continue;
308
305 //check if its a source or a sink 309 //check if its a source or a sink
306 if (snd_mixer_selem_has_capture_volume(elem)) 310 if (snd_mixer_selem_has_capture_volume(elem))
307 tmp_source = eina_list_append(tmp_source, elem); 311 tmp_source = eina_list_append(tmp_source, elem);