Fixed aplay -l

This commit is contained in:
Abramo Bagnara 2001-01-29 08:41:26 +00:00
parent 025a1c8d26
commit 72db56ca30

View file

@ -202,7 +202,7 @@ static void device_list(void)
break; break;
pcminfo.device = dev; pcminfo.device = dev;
pcminfo.stream = -stream - 1; pcminfo.stream = -stream - 1;
pcminfo.subdevice = -1; pcminfo.subdevice = 0;
if ((err = snd_ctl_pcm_info(handle, &pcminfo)) < 0) { if ((err = snd_ctl_pcm_info(handle, &pcminfo)) < 0) {
error("control digital audio info (%i): %s", card, snd_strerror(err)); error("control digital audio info (%i): %s", card, snd_strerror(err));
continue; continue;