[pulseaudio-discuss] [PATCH 12/30] alsa: Fix return value check
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Thu Jan 16 07:02:38 PST 2014
---
src/modules/alsa/alsa-ucm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c
index d9137ad..28e922e 100644
--- a/src/modules/alsa/alsa-ucm.c
+++ b/src/modules/alsa/alsa-ucm.c
@@ -850,7 +850,7 @@ int pa_alsa_ucm_set_port(pa_alsa_ucm_mapping_context *context, pa_device_port *p
enable_devs[enable_num++] = dev_name;
else {
pa_log_debug("Disable ucm device %s", dev_name);
- if (snd_use_case_set(ucm->ucm_mgr, "_disdev", dev_name) > 0) {
+ if (snd_use_case_set(ucm->ucm_mgr, "_disdev", dev_name) < 0) {
pa_log("Failed to disable ucm device %s", dev_name);
ret = -1;
break;
--
1.8.3.1
More information about the pulseaudio-discuss
mailing list