From 1caeb47ccc3f4241cd97be12d31081a18db27f1b Mon Sep 17 00:00:00 2001
From: Jonathan Aillet <jonathan.aillet@iot.bzh>
Date: Thu, 6 Jun 2019 11:50:23 +0200
Subject: Prevent error when 'hal-dependencies' is received

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>
---
 plugins/alsa/alsa-api-mixer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
-- 
cgit