summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-03-10 01:21:42 -0700
committerChris Robinson <[email protected]>2009-03-10 01:21:42 -0700
commitace047d625cc0714cb13c923ac02c30145b4322b (patch)
treed9723aa911882f57d0adfba1b17443487fd808fc
parentd6277db20971700c9a39797a061e76b2bca9e0a9 (diff)
Append the card and device indices to the ALSA device strings
-rw-r--r--Alc/alsa.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 68e1432d..27171e75 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -993,8 +993,8 @@ LOAD_FUNC(snd_card_next);
if(firstDev && card < MAX_DEVICES-1) {
firstDev = 0;
- snprintf(name, sizeof(name), "ALSA Software on %s",
- psnd_ctl_card_info_get_name(info));
+ snprintf(name, sizeof(name), "ALSA Software on %s (hw:%d)",
+ psnd_ctl_card_info_get_name(info), card);
alsaDeviceList[card+1] = AppendDeviceList(name);
}
@@ -1009,8 +1009,8 @@ LOAD_FUNC(snd_card_next);
cname = psnd_ctl_card_info_get_name(info);
dname = psnd_pcm_info_get_name(pcminfo);
- snprintf(name, sizeof(name), "ALSA Software on %s [%s]",
- cname, dname);
+ snprintf(name, sizeof(name), "ALSA Software on %s [%s] (hw:%d,%d)",
+ cname, dname, card, dev);
allDevNameMap[idx].name = AppendAllDeviceList(name);
allDevNameMap[idx].card = card;
allDevNameMap[idx].dev = dev;
@@ -1068,8 +1068,8 @@ next_card:
cname = psnd_ctl_card_info_get_name(info);
dname = psnd_pcm_info_get_name(pcminfo);
- snprintf(name, sizeof(name), "ALSA Capture on %s [%s]",
- cname, dname);
+ snprintf(name, sizeof(name), "ALSA Capture on %s [%s] (hw:%d,%d)",
+ cname, dname, card, dev);
allCaptureDevNameMap[idx].name = AppendCaptureDeviceList(name);
allCaptureDevNameMap[idx].card = card;
allCaptureDevNameMap[idx].dev = dev;