mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
ucm: implement basic script exec functionality
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
116fabd603
commit
265cf2c3ee
1 changed files with 3 additions and 1 deletions
|
|
@ -265,7 +265,9 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
|
|||
usleep(s->data.sleep);
|
||||
break;
|
||||
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;
|
||||
default:
|
||||
uc_error("unknown sequence command %i", s->type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue