diff options
author | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-17 10:17:29 +0100 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-17 10:17:29 +0100 |
commit | 07fb99ec63d034983b768e8b8bd3d2b30ae37f6f (patch) | |
tree | 7cd2900d0b09d9c9c74265f46b789435a6e965a6 /plugins/audio/audio-alsa.c | |
parent | 915d25a0c2fcff8a8bb189963f490e0894d05733 (diff) |
Fix Audio API runtime
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-alsa.c')
-rw-r--r-- | plugins/audio/audio-alsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/audio/audio-alsa.c b/plugins/audio/audio-alsa.c index 4d97c2d2..c13cdc59 100644 --- a/plugins/audio/audio-alsa.c +++ b/plugins/audio/audio-alsa.c @@ -160,7 +160,7 @@ PUBLIC unsigned char _alsa_get_mute (unsigned int num) { } - return (unsigned char)mute; + return (unsigned char)!mute; } PUBLIC void _alsa_set_mute (unsigned int num, unsigned char mute) { @@ -169,7 +169,7 @@ PUBLIC void _alsa_set_mute (unsigned int num, unsigned char mute) { return; if (snd_mixer_selem_has_playback_switch (dev_ctx[num]->mixer_elm)) - snd_mixer_selem_set_playback_switch_all (dev_ctx[num]->mixer_elm, mute); + snd_mixer_selem_set_playback_switch_all (dev_ctx[num]->mixer_elm, !mute); } PUBLIC void _alsa_set_rate (unsigned int num, unsigned int rate) { |