mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
ucm: add more error messages for cdev and cset commands
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
37c7e2843f
commit
038eaa429b
1 changed files with 6 additions and 2 deletions
|
|
@ -254,12 +254,16 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
if (ctl == NULL) {
|
||||
err = open_ctl(uc_mgr, &ctl, cdev);
|
||||
if (err < 0)
|
||||
if (err < 0) {
|
||||
uc_error("unable to open ctl device '%s'", cdev);
|
||||
goto __fail;
|
||||
}
|
||||
}
|
||||
err = execute_cset(ctl, s->data.cset);
|
||||
if (err < 0)
|
||||
if (err < 0) {
|
||||
uc_error("unable to execute cset '%s'\n", s->data.cset);
|
||||
goto __fail;
|
||||
}
|
||||
break;
|
||||
case SEQUENCE_ELEMENT_TYPE_SLEEP:
|
||||
usleep(s->data.sleep);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue