mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 17:46:31 +01:00
Fix wrong direction check in aplay/arecord --list-pcms
I have just discovered a minor logic inversion bug in aplay/arecord --list-pcms functionality. Basically, executing "aplay --list-pcms" lists all devices capable of capture and executing "arecord --list-pcms" lists all devices capable of playback. Signed-off-by: Peter Stokes <linux@dadeos.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
2e3915d158
commit
9a47cf7b35
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ static void pcm_list(void)
|
|||
name = snd_device_name_get_hint(*n, "NAME");
|
||||
descr = snd_device_name_get_hint(*n, "DESC");
|
||||
io = snd_device_name_get_hint(*n, "IOID");
|
||||
if (io != NULL && strcmp(io, filter) == 0)
|
||||
if (io != NULL && strcmp(io, filter) != 0)
|
||||
goto __end;
|
||||
printf("%s\n", name);
|
||||
if ((descr1 = descr) != NULL) {
|
||||
|
|
Loading…
Reference in a new issue