summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2018-06-05 08:45:16 +0200
committerfulup <fulup.arfoll@iot.bzh>2018-06-05 08:45:16 +0200
commita05bd6782eab1692e87fa365be1491fbe47b41d4 (patch)
treec1af7ac594071e40ed03cb57fd9f40e90c297f53 /plugins
parenta26a5d6befc52d72be7dd20ad8b33c6c3aaaa038 (diff)
Fix alsa URI within attach response
Diffstat (limited to 'plugins')
-rw-r--r--plugins/alsa/alsa-api-mixer.c5
1 files changed, 3 insertions, 2 deletions
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);