]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix bug when a sound card had a stereo mute element and would fail to unmute the...
authorJames Courtier-Dutton <James@superbug.co.uk>
Wed, 29 Jun 2005 20:31:33 +0000 (20:31 +0000)
committerJames Courtier-Dutton <James@superbug.co.uk>
Wed, 29 Jun 2005 20:31:33 +0000 (20:31 +0000)
Fixes a typo. Fixes bug#[ALSA - lib 0001219]

src/mixer/simple.c

index 59507eda09f3412fde7c9144a978854fac278bdf..29c273e87abae2d434b931ff1394a7990e9c59e8 100644 (file)
@@ -488,7 +488,7 @@ int snd_mixer_selem_set_playback_dB_all(snd_mixer_elem_t *elem, long value, int
 int snd_mixer_selem_set_playback_switch(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, int value)
 {
        CHECK_BASIC(elem);
-       CHECK_DIR_CHN(elem, SM_CAP_PSWITCH, SM_CAP_PSWITCH, channel);
+       CHECK_DIR_CHN(elem, SM_CAP_PSWITCH, SM_CAP_PSWITCH_JOIN, channel);
        return sm_selem_ops(elem)->set_switch(elem, SM_PLAY, channel, value);
 }