#13 setvolume fails for MIXER_CHANNEL_ALL, 'capture'

v1.0 (example)
open
nobody
None
5
2014-02-09
2014-02-09
No

This always throws a exception:
mixer.setvolume(100, alsaaudio.MIXER_CHANNEL_ALL, 'capture')
whereas using a channel of 0 or 1 succeeds for my stereo USB mic

Looking at the code I see that channel = -1 (MIXER_CHANNEL_ALL) is not honored when setting capture volume.

In pyalsaaudio-0.7/alsaaudio.c:1768
&& snd_mixer_selem_has_capture_channel(elem, channel)
should be
&& snd_mixer_selem_has_capture_channel(elem, i)

Thanks for this library!
-Hugh

Discussion