From cf93ece4748db951ec0599dceb3569865ca333d3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 5 Apr 2013 01:51:50 -0500 Subject: Fix ALSA capture knob This resolves Bug 1190 Thanks to Roman Savochenko for the patch! --- kmix/mixer_alsa9.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'kmix') diff --git a/kmix/mixer_alsa9.cpp b/kmix/mixer_alsa9.cpp index e23e2b57..8f00c8d9 100644 --- a/kmix/mixer_alsa9.cpp +++ b/kmix/mixer_alsa9.cpp @@ -305,8 +305,8 @@ Mixer_ALSA::open() } // is ordinary mixer element (NOT an enum) MixDevice* md = new MixDevice( mixerIdx, - *volPlay, - canRecord, + canCapture ? *volCapture : *volPlay, + canCapture ? true : canRecord, canMute, snd_mixer_selem_id_get_name( sid ), ct, @@ -321,18 +321,6 @@ Mixer_ALSA::open() masterChosen = true; } - if ( canCapture && !canRecord ) { - MixDevice *mdCapture = - new MixDevice( mixerIdx, - *volCapture, - true, - canMute, - snd_mixer_selem_id_get_name( sid ), - ct, - cc ); - m_mixDevices.append( mdCapture ); - } - if ( enumList.count() > 0 ) { int maxEnumId= enumList.count(); TQPtrList& enumValuesRef = md->enumValues(); // retrieve a ref -- cgit v1.2.3