mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
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:
parent
985c6f94d0
commit
c593c1d260
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
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_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);
|
return sm_selem_ops(elem)->set_switch(elem, SM_PLAY, channel, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue