mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
kmix: fix default ALSA card probing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
507456f0ad
commit
feb953e9e1
2 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ int Mixer_ALSA::open()
|
|||
}
|
||||
|
||||
// Determine a card name
|
||||
if( m_devnum < -1 || m_devnum > 31 )
|
||||
if( m_devnum <= -1 || m_devnum > 31 )
|
||||
devName = "default";
|
||||
else
|
||||
devName = QString( "hw:%1" ).arg( m_devnum );
|
||||
|
|
|
@ -161,7 +161,7 @@ void MixerToolBox::initMixerInternal(MultiDriverMode multiDriverMode, QList<QStr
|
|||
// New: We don't try be that clever anymore. We now blindly scan 20 cards, as the clever
|
||||
// approach doesn't work for the one or other user (e.g. hotplugging might create holes in the list of soundcards).
|
||||
int devNumMax = 19;
|
||||
for( int dev=0; dev<=devNumMax; dev++ )
|
||||
for( int dev=-1; dev<=devNumMax; dev++ )
|
||||
{
|
||||
Mixer *mixer = new Mixer( driverName, dev );
|
||||
bool mixerAccepted = possiblyAddMixer(mixer);
|
||||
|
|
Loading…
Add table
Reference in a new issue