summaryrefslogtreecommitdiffstats
path: root/plugins/alsa
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-06-06 11:50:23 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-06-06 14:39:43 +0200
commit1caeb47ccc3f4241cd97be12d31081a18db27f1b (patch)
tree349629f80f61c3f44954332df3ccbc8e4d297f3e /plugins/alsa
parent46c9aed8377caba954ca972d98618c7f6b7f07db (diff)
Prevent error when 'hal-dependencies' is receivedhalibut_7.99.3halibut_7.99.2halibut/7.99.3halibut/7.99.27.99.37.99.2
Prevent error when 'hal-dependencies' data is received by softmixer when call to 'attach' verb is done. BUG-AGL: SPEC-2329 Change-Id: I434f95aa62cf2617e6edb1dde3c7c39778e1fb5d Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/alsa')
-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 16b05ff..9796206 100644
--- a/plugins/alsa/alsa-api-mixer.c
+++ b/plugins/alsa/alsa-api-mixer.c
@@ -550,10 +550,11 @@ STATIC void MixerAttachVerb(afb_req_t request) {
AFB_API_INFO(mixer->api, "%s: %s", __func__, json_object_get_string(argsJ));
- error = wrap_json_unpack(argsJ, "{ss,s?s,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,s?o !}"
, "uid", &uid
, "prefix", &prefix
, "mixerapi", NULL
+ , "hal-dependencies", NULL
, "ramps", &rampsJ
, "playbacks", &playbacksJ
, "captures", &capturesJ