mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
ucm: small cosmetic uc_error change in execute_sequence()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
8a36e38dc4
commit
c01e3d30b8
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue