From 08b80110b086ae2f3cd6b6ddfd1f35de86a03407 Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Mon, 4 May 2015 21:18:46 +0000 Subject: [PATCH] Fix channel selection error. Closes #1 --- alsaaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsaaudio.c b/alsaaudio.c index f08721d..ef900ea 100644 --- a/alsaaudio.c +++ b/alsaaudio.c @@ -1780,7 +1780,7 @@ alsamixer_setvolume(alsamixer_t *self, PyObject *args) done++; } else if (direction == 1 - && snd_mixer_selem_has_capture_channel(elem, channel) + && snd_mixer_selem_has_capture_channel(elem, i) && snd_mixer_selem_has_capture_volume(elem)) { physvolume = alsamixer_getphysvolume(self->cmin,self->cmax,