From 56180af7271b1731ac88da5aed121076e3651d16 Mon Sep 17 00:00:00 2001 From: gouchi Date: Mon, 2 May 2016 12:11:47 +0200 Subject: [PATCH] add audio hdmi output --- audio/drivers/alsa.c | 2 +- audio/drivers/alsathread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)