summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kmix/mixer_alsa9.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kmix/mixer_alsa9.cpp b/kmix/mixer_alsa9.cpp
index 8f00c8d9..46d98d41 100644
--- a/kmix/mixer_alsa9.cpp
+++ b/kmix/mixer_alsa9.cpp
@@ -763,13 +763,15 @@ Mixer_ALSA::writeVolumeToHW( int devnum, Volume& volume )
if (snd_mixer_selem_has_playback_volume( elem ) && !volume.isCapture() ) {
snd_mixer_selem_set_playback_volume ( elem, SND_MIXER_SCHN_FRONT_LEFT, left );
- if ( ! snd_mixer_selem_is_playback_mono ( elem ) )
+ if ( ! snd_mixer_selem_is_playback_mono ( elem ) ) {
snd_mixer_selem_set_playback_volume ( elem, SND_MIXER_SCHN_FRONT_RIGHT, right );
+ }
}
else if ( snd_mixer_selem_has_capture_volume( elem ) && volume.isCapture() ) {
snd_mixer_selem_set_capture_volume ( elem, SND_MIXER_SCHN_FRONT_LEFT, left );
- if ( ! snd_mixer_selem_is_playback_mono ( elem ) )
+ if ( ! snd_mixer_selem_is_capture_mono ( elem ) ) {
snd_mixer_selem_set_capture_volume ( elem, SND_MIXER_SCHN_FRONT_RIGHT, right );
+ }
}
if ( snd_mixer_selem_has_playback_switch( elem ) )