ucm: small cosmetic uc_error change in execute_sequence()

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-11-05 14:07:26 +01:00
parent 8a36e38dc4
commit c01e3d30b8

View file

@ -387,14 +387,15 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
strcmp(playback_ctl, capture_ctl) != 0) { strcmp(playback_ctl, capture_ctl) != 0) {
free(playback_ctl); free(playback_ctl);
free(capture_ctl); free(capture_ctl);
uc_error("cdev is not defined!"); uc_error("cdev is not equal for playback and capture!");
return -EINVAL; return -EINVAL;
} }
if (playback_ctl != NULL) { if (playback_ctl != NULL) {
cdev = playback_ctl; cdev = playback_ctl;
free(capture_ctl); free(capture_ctl);
} else } else {
cdev = capture_ctl; cdev = capture_ctl;
}
} }
if (ctl == NULL) { if (ctl == NULL) {
err = uc_mgr_open_ctl(uc_mgr, &ctl, cdev); err = uc_mgr_open_ctl(uc_mgr, &ctl, cdev);