Commit 2b8a086d authored by Alex Hermann's avatar Alex Hermann
Browse files

alsa: Make card names unique by adding the alsa card number

Unfortunately, the number <-> card mapping may change every boot, or when
reloading modules.
parent 51b93f5c
Pipeline #109402 passed with stage
in 1 minute and 27 seconds
......@@ -303,7 +303,7 @@ int Mixer_ALSA::openAlsaDevice(const QString& devName)
snd_ctl_close( ctl_handle );
return Mixer::ERR_READ;
const char* mixer_card_name = snd_ctl_card_info_get_name( hw_info );
QString mixer_card_name = QString("%1 (%2)").arg(snd_ctl_card_info_get_name(hw_info)).arg(m_devnum);
//QString mixer_card_name_QString = mixer_card_name;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment