From a05bd6782eab1692e87fa365be1491fbe47b41d4 Mon Sep 17 00:00:00 2001 From: fulup Date: Tue, 5 Jun 2018 08:45:16 +0200 Subject: Fix alsa URI within attach response --- plugins/alsa/alsa-api-mixer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/alsa') diff --git a/plugins/alsa/alsa-api-mixer.c b/plugins/alsa/alsa-api-mixer.c index a05e1cf..c97f8c6 100644 --- a/plugins/alsa/alsa-api-mixer.c +++ b/plugins/alsa/alsa-api-mixer.c @@ -78,7 +78,7 @@ STATIC void MixerInfoAction(AFB_ReqT request, json_object *argsJ) { if (json_object_get_type(argsJ) == json_type_null) { streams = 1; ramps = 1; - zones = 1; + zones = 0; captures = 0; playbacks = 0; } else { @@ -111,8 +111,9 @@ STATIC void MixerInfoAction(AFB_ReqT request, json_object *argsJ) { , "volume", streams[idx]->volume , "mute", streams[idx]->mute ); - wrap_json_pack(&valueJ, "{ss,so}" + wrap_json_pack(&valueJ, "{ss,ss, so}" , "uid", streams[idx]->uid + , "alsa", streams[idx]->source , "numid", numidJ ); json_object_array_add(streamsJ, valueJ); -- cgit 1.2.3-korg