summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2010-12-21 23:11:53 +0100
committerJaroslav Kysela <perex@perex.cz>2010-12-22 08:06:08 +0100
commit265cf2c3ee70a825d921a1aa621e4dafcc4b0ca1 (patch)
treeae23b8083fab0ba44b840338b8739944b2219652
parent116fabd6039ed04ee4a65098e936a1691a7b3956 (diff)
downloadalsa-lib-265cf2c3ee70a825d921a1aa621e4dafcc4b0ca1.tar.gz
ucm: implement basic script exec functionality
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r--src/ucm/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ucm/main.c b/src/ucm/main.c
index a3af3aad..4c13547a 100644
--- a/src/ucm/main.c
+++ b/src/ucm/main.c
@@ -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);