From c01e3d30b863285efdb2e4f3f9b68b92c1d62db3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 5 Nov 2019 14:07:26 +0100 Subject: [PATCH] ucm: small cosmetic uc_error change in execute_sequence() Signed-off-by: Jaroslav Kysela --- src/ucm/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ucm/main.c b/src/ucm/main.c index ecf59a9f..7aaf8588 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -387,14 +387,15 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr, strcmp(playback_ctl, capture_ctl) != 0) { free(playback_ctl); free(capture_ctl); - uc_error("cdev is not defined!"); + uc_error("cdev is not equal for playback and capture!"); return -EINVAL; } if (playback_ctl != NULL) { cdev = playback_ctl; free(capture_ctl); - } else + } else { cdev = capture_ctl; + } } if (ctl == NULL) { err = uc_mgr_open_ctl(uc_mgr, &ctl, cdev); -- 2.47.1