diff --git a/audio/drivers/alsa.c b/audio/drivers/alsa.c index 0b4a359d66..2c875a22b4 100644 --- a/audio/drivers/alsa.c +++ b/audio/drivers/alsa.c @@ -351,7 +351,7 @@ static void *alsa_device_list_new(void *data) /* description of device IOID - input / output identifcation * ("Input" or "Output"), NULL means both) */ - if (io == NULL) + if (!io || !strcmp(io,"Output")) string_list_append(s, name, attr); if (name) diff --git a/audio/drivers/alsathread.c b/audio/drivers/alsathread.c index 83175b3c56..f8a2c53e9f 100644 --- a/audio/drivers/alsathread.c +++ b/audio/drivers/alsathread.c @@ -369,7 +369,7 @@ static void *alsa_device_list_new(void *data) /* description of device IOID - input / output identifcation * ("Input" or "Output"), NULL means both) */ - if (io == NULL) + if (!io || !strcmp(io,"Output")) string_list_append(s, name, attr); if (name)