Summary: | kmix misses input control slider for capturing input with usb_audio headset | ||
---|---|---|---|
Product: | [Applications] kmix | Reporter: | Sebastian Reitenbach <itlistuser> |
Component: | Soundcard specific | Assignee: | Christian Esken <esken> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sinderman+kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Sebastian Reitenbach
2006-04-21 11:56:51 UTC
I'm using fedora core 6 with a cmipci driven sound card and am also missing stuff in kmix: Some of the switches/sliders shown in alsamixer are missing from kmix. For instance, amixer reports this for microphone related stuff: Simple mixer control 'Mic',0 Capabilities: pvolume pvolume-joined cvolume pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono Capture channels: Mono Limits: Playback 0 - 31 Capture 0 - 7 Mono: Playback 31 [100%] [off] Capture 0 [0%] [on] Simple mixer control 'Mic Boost',0 Capabilities: pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono Capture channels: Mono Mono: Playback [off] Capture [on] Which corresponds to what I have in alsamixer. On the other hand kmix is missing the "Mic:cvolume" and "Mic Boost:cswitch" capabilities. Tobias I see interesting combinations in Tobias Oed's configuration: 1) "pvolume cvolume" is definitely not working in KDE3's KMix. It is (hopefully) fixed for KDE4, SVN Revision 673714. Feedback about this is very appreciated. 2) "pswitch cswitch" without volume is possibly not supported in KDE3's KMix. It is not fixed yet in KDE4. Target milestone: KDE4 *** Bug 132172 has been marked as a duplicate of this bug. *** SVN commit 676707 by esken: Finalized optimal ALSA support. The last open issue (pswitch cswitch) is now resolved. BUGS: 123560 BUGS: 135729 BUGS: 126012 BUGS: 125772 M +30 -15 mdwslider.cpp --- trunk/KDE/kdemultimedia/kmix/mdwslider.cpp #676706:676707 @@ -234,22 +234,36 @@ - // --- SLIDERS --------------------------- - QBoxLayout *volLayout; - if ( _orientation == Qt::Vertical ) { - volLayout = new QHBoxLayout( ); - volLayout->setAlignment(Qt::AlignVCenter); - } - else { - volLayout = new QVBoxLayout( ); - volLayout->setAlignment(Qt::AlignHCenter); - } - sliLayout->addItem( volLayout ); + // --- SLIDERS --------------------------- + QBoxLayout *volLayout; + if ( _orientation == Qt::Vertical ) { + volLayout = new QHBoxLayout( ); + volLayout->setAlignment(Qt::AlignVCenter); + } + else { + volLayout = new QVBoxLayout( ); + volLayout->setAlignment(Qt::AlignHCenter); + } + sliLayout->addItem( volLayout ); - if ( m_mixdevice->playbackVolume().count() > 0 ) - addSliders( volLayout, 'p' ); - if ( m_mixdevice->captureVolume().count() > 0 ) + if ( m_mixdevice->playbackVolume().count() > 0 ) + addSliders( volLayout, 'p' ); + if ( m_mixdevice->captureVolume().count() > 0 ) addSliders( volLayout, 'c' ); + if ( m_mixdevice->playbackVolume().count() == 0 && m_mixdevice->captureVolume().count() == 0 ) + { // no siders => put a label with the name. + // But I won't add " (capture)" as on the sliders, because there is only one "column" + if ( _orientation == Qt::Vertical ) { + m_label = new VerticalText( this, m_mixdevice->readableName() ); + } + else { + m_label = new QLabel(this); + static_cast<QLabel*>(m_label)->setText(m_mixdevice->readableName()); + } + volLayout->addWidget( m_label ); + m_label->installEventFilter( this ); + m_label->setToolTip( m_mixdevice->readableName() ); // @todo: Whatsthis, explaining the device + } // --- RECORD SOURCE LED -------------------------- if ( showRecordLED ) @@ -277,7 +291,8 @@ reclayout->addWidget( m_recordLED ); connect(m_recordLED, SIGNAL(stateChanged(bool)), this, SLOT(setRecsrc(bool))); m_recordLED->installEventFilter( this ); - m_recordLED->setToolTip( i18n( "Record" ) ); + QString muteTip( i18n( "Capture/Uncapture %1", m_mixdevice->readableName() ) ); + m_recordLED->setToolTip( muteTip ); // @todo: Whatsthis, explaining the device } // has Record LED else { |