aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-02 00:24:16 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-02 00:35:19 +0200
commit8c41c2275b6cfa8f60a5d0f0c1793fd0c88dcf3f (patch)
tree366cd417f7baeb327a0f86dbf67fa3a40fc78c55
parente2b2d81126498d83fe7576837ccb744d96715a0a (diff)
Authorize new section at mixer initialization
Authorize the new section 'mixerapi' to be present into the json sent to initialize mixer. 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 432997c..8e574e1 100644
--- a/plugins/alsa/alsa-api-mixer.c
+++ b/plugins/alsa/alsa-api-mixer.c
@@ -194,8 +194,9 @@ CTLP_LUA2C(_mixer_new_, source, argsJ, responseJ) {
goto OnErrorExit;
}
- error = wrap_json_unpack(argsJ, "{ss,s?s,s?o,s?o,s?o,s?o !}"
+ error = wrap_json_unpack(argsJ, "{ss,s?o,s?s,s?o,s?o,s?o,s?o !}"
, "uid", &mixer->uid
+ , "mixerapi", NULL
, "info", &mixer->info
, "backend", &backendJ
, "frontend", &frontendJ