mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 02:46:30 +01:00
Fixed -l output
This commit is contained in:
parent
8013b4b934
commit
fad195af13
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue