ucm: add more error messages for cdev and cset commands

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2011-01-31 15:06:03 +01:00
parent 37c7e2843f
commit 038eaa429b

View file

@ -254,12 +254,16 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
} }
if (ctl == NULL) { if (ctl == NULL) {
err = open_ctl(uc_mgr, &ctl, cdev); err = open_ctl(uc_mgr, &ctl, cdev);
if (err < 0) if (err < 0) {
uc_error("unable to open ctl device '%s'", cdev);
goto __fail; goto __fail;
}
} }
err = execute_cset(ctl, s->data.cset); 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; goto __fail;
}
break; break;
case SEQUENCE_ELEMENT_TYPE_SLEEP: case SEQUENCE_ELEMENT_TYPE_SLEEP:
usleep(s->data.sleep); usleep(s->data.sleep);