ucm: implement basic script exec functionality

Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
Liam Girdwood 2010-12-21 23:11:53 +01:00 committed by Jaroslav Kysela
parent 116fabd603
commit 265cf2c3ee

View file

@ -265,7 +265,9 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
usleep(s->data.sleep); usleep(s->data.sleep);
break; break;
case SEQUENCE_ELEMENT_TYPE_EXEC: case SEQUENCE_ELEMENT_TYPE_EXEC:
uc_error("exec not yet implemented: '%s'", s->data.exec); err = system(s->data.exec);
if (err < 0)
goto __fail;
break; break;
default: default:
uc_error("unknown sequence command %i", s->type); uc_error("unknown sequence command %i", s->type);