From ef918b239ec514f0e6b26dd3633096be1ec1fb3e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Nov 2015 19:21:41 +0100 Subject: ao_alsa: list bidirectional devices too The ALSA doxygen says: IOID - input / output identification ("Input" or "Output"), NULL means both This bug was blatantly introduced with commit cf94fce4. --- audio/out/ao_alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 4112ab3c83..a0b05c898d 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -987,7 +987,7 @@ static void list_devs(struct ao *ao, struct ao_device_list *list) char *name = snd_device_name_get_hint(hints[n], "NAME"); char *desc = snd_device_name_get_hint(hints[n], "DESC"); char *io = snd_device_name_get_hint(hints[n], "IOID"); - if (io && strcmp(io, "Output") == 0) { + if (!io || strcmp(io, "Output") == 0) { char desc2[1024]; snprintf(desc2, sizeof(desc2), "%s", desc ? desc : ""); for (int i = 0; desc2[i]; i++) { -- cgit v1.2.3