aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-10 00:13:41 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-10 21:36:23 +0200
commit4abacbe607fc63d5f51e8e41e0e7243c4ea46952 (patch)
tree6ff5a7c6ee66a90c9824935eb7ce38cdfb8edbe0
parent5acb1e3cd0f049dec18b39eb94daa5b43e23d9e2 (diff)
Authorize new section at mixer initialization
Authorize the new section 'mixerapi' to be present into the json sent to initialize mixer. Change-Id: I7feed818f19f2d93566f6e1634933462828dbdf0 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--plugins/alsa/alsa-api-mixer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-api-mixer.c b/plugins/alsa/alsa-api-mixer.c
index c415796..21acc1c 100644
--- a/plugins/alsa/alsa-api-mixer.c
+++ b/plugins/alsa/alsa-api-mixer.c
@@ -540,9 +540,10 @@ STATIC void MixerAttachVerb(AFB_ReqT request) {
json_object *responseJ = json_object_new_object();
int error;
- error = wrap_json_unpack(argsJ, "{ss,s?s,s?o,s?o,s?o,s?o,s?o,s?o !}"
+ error = wrap_json_unpack(argsJ, "{ss,s?s,s?s,s?o,s?o,s?o,s?o,s?o,s?o !}"
, "uid", &uid
, "prefix", &prefix
+ , "mixerapi", NULL
, "ramps", &rampsJ
, "playbacks", &playbacksJ
, "captures", &capturesJ