Commit b1be2057 authored by Alex Hermann's avatar Alex Hermann Committed by Alex Hermann
Browse files

alsa: Create unique devicename by including the ID

For adding tabs to the gui, the name must be unique. Because the
"cardDiscriminator" does not work, add the ALSA ID to the card name.
parent 76800daf
Pipeline #109384 passed with stage
in 1 minute and 26 seconds
......@@ -310,7 +310,7 @@ int Mixer_ALSA::openAlsaDevice(const QString& devName)
return Mixer::ERR_READ;
}
m_deviceID = snd_ctl_card_info_get_id( hw_info );
const char* mixer_card_name = snd_ctl_card_info_get_name( hw_info );
QString mixer_card_name = QString(snd_ctl_card_info_get_name( hw_info ) + QString(" (") + m_deviceID + QString(")"));
//QString mixer_card_name_QString = mixer_card_name;
registerCard(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