]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: implement basic script exec functionality
authorLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 21 Dec 2010 22:11:53 +0000 (23:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 22 Dec 2010 07:06:08 +0000 (08:06 +0100)
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
src/ucm/main.c

index a3af3aadedd26e69a1a3a71ae3e258d23d1d1900..4c13547a7e059d69bb23bf097846f0ffc6f38d19 100644 (file)
@@ -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);