From 4abacbe607fc63d5f51e8e41e0e7243c4ea46952 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sun, 10 Jun 2018 00:13:41 +0200 Subject: 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 --- plugins/alsa/alsa-api-mixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit 1.2.3-korg