From d899441df176109b4c109c9c3045d0a7a7822b3a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 2 Jul 2023 00:17:58 +0200 Subject: [PATCH] ALSA: disambiguate multiple soundcards with the same name --- libs/ardouralsautil/devicelist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardouralsautil/devicelist.cc b/libs/ardouralsautil/devicelist.cc index 5a72266826..b6a59a68ef 100644 --- a/libs/ardouralsautil/devicelist.cc +++ b/libs/ardouralsautil/devicelist.cc @@ -104,7 +104,7 @@ ARDOUR::get_alsa_audio_device_names (std::map& devices assert (!have_multiple_subdevices); have_multiple_subdevices = true; - uniq_name += " (" + PBD::to_string (device) + ")"; + uniq_name += " (" + hwname + ")"; devices.insert (std::make_pair (uniq_name, hwname)); #if 0 // disabled (blame the_CLA's laptop) /* It may happen that the soundcard has multiple sub-devices for playback