From: James Courtier-Dutton Date: Wed, 29 Jun 2005 20:31:33 +0000 (+0000) Subject: Fix bug when a sound card had a stereo mute element and would fail to unmute the... X-Git-Tag: v1.0.10rc1~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c593c1d260c9bfba4619ff98a9aba2d9452da7fa;p=alsa-lib.git Fix bug when a sound card had a stereo mute element and would fail to unmute the right channel. Fixes a typo. Fixes bug#[ALSA - lib 0001219] --- diff --git a/src/mixer/simple.c b/src/mixer/simple.c index 59507eda..29c273e8 100644 --- a/src/mixer/simple.c +++ b/src/mixer/simple.c @@ -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); }