Fixed -l output

This commit is contained in:
Jaroslav Kysela 2000-09-09 23:17:04 +00:00
parent 8013b4b934
commit fad195af13

View file

@ -257,19 +257,19 @@ static void device_list(void)
} }
if (pcminfo.stream != stream) if (pcminfo.stream != stream)
continue; continue;
fprintf(stderr, "%s: %i [%s] / #%i: %s", fprintf(stderr, "%s: %i [%s] / #%i: %s\n",
info.name, info.name,
card + 1, card + 1,
info.id, info.id,
dev, dev,
pcminfo.name); pcminfo.name);
fprintf(stderr, " Subdevices: %i/%i", pcminfo.subdevices_avail, pcminfo.subdevices_count); fprintf(stderr, " Subdevices: %i/%i\n", pcminfo.subdevices_avail, pcminfo.subdevices_count);
for (idx = 0; idx < pcminfo.subdevices_count; idx++) { for (idx = 0; idx < pcminfo.subdevices_count; idx++) {
pcminfo.subdevice = idx; pcminfo.subdevice = idx;
if ((err = snd_ctl_pcm_info(handle, &pcminfo)) < 0) { if ((err = snd_ctl_pcm_info(handle, &pcminfo)) < 0) {
error("control digital audio playback info (%i): %s", card, snd_strerror(err)); error("control digital audio playback info (%i): %s", card, snd_strerror(err));
} else { } else {
fprintf(stderr, " Subdevice #%i: %s", idx, pcminfo.subname); fprintf(stderr, " Subdevice #%i: %s\n", idx, pcminfo.subname);
} }
} }
} }