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]
This commit is contained in:
James Courtier-Dutton 2005-06-29 20:31:33 +00:00
parent 985c6f94d0
commit c593c1d260

View 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);
}