summaryrefslogtreecommitdiffstats
path: root/plugins/alsa
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alsa')
-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);