From 612b785b0fb4af835727aa8ebe38afc6c5ec0e1e Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Wed, 23 Aug 2017 22:51:28 +0200 Subject: Fix Regretion on AlsaCore Ctl-get --- Alsa-afb/Alsa-SetGet.c | 4 ++-- htdocs/alsa-core.html | 2 +- nbproject/configurations.xml | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/Alsa-afb/Alsa-SetGet.c b/Alsa-afb/Alsa-SetGet.c index 7450944..71206e6 100644 --- a/Alsa-afb/Alsa-SetGet.c +++ b/Alsa-afb/Alsa-SetGet.c @@ -759,8 +759,8 @@ STATIC void alsaSetGetCtls(ActionSetGetT action, afb_req request) { else { // Do not embed response in an array when only one ctl was requested if (action == ACTION_GET) { - if (queryValues.count > 1) json_object_array_add(sndctls, ctlRequest[jdx].valuesJ); - else sndctls = ctlRequest[jdx].valuesJ; + if (queryValues.count == 1) sndctls = ctlRequest[jdx].valuesJ; + else json_object_array_add(sndctls, ctlRequest[jdx].valuesJ); } } } diff --git a/htdocs/alsa-core.html b/htdocs/alsa-core.html index 39a4990..ff17fd1 100644 --- a/htdocs/alsa-core.html +++ b/htdocs/alsa-core.html @@ -33,7 +33,7 @@
  1. -
  2. +

  3. diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml index 424cd2f..0b0cdfb 100644 --- a/nbproject/configurations.xml +++ b/nbproject/configurations.xml @@ -2,6 +2,10 @@ + + filescan-utils.c + wrap-json.c + Alsa-AddCtl.c Alsa-ApiHat.c @@ -340,6 +344,7 @@ Audio-Common + ../../../opt/include build/HAL-afb/HAL-interface @@ -374,8 +379,11 @@ ../../../opt/include/afb HAL-afb/HAL_MOST_UNICENS + ../../../opt/include/alsa + /usr/include/json-c Audio-Common HAL-afb/HAL-interface + ../../../opt/include build/HAL-afb/HAL_MOST_UNICENS @@ -431,6 +439,7 @@ HAL-afb/HAL_MOST_UNICENS + /usr/include/json-c build/HAL-afb/HAL_MOST_UNICENS @@ -443,6 +452,7 @@ ../../../opt/include/afb HAL-afb/HAL_MOST_UNICENS + /usr/include/json-c build/HAL-afb/HAL_MOST_UNICENS @@ -537,6 +547,25 @@ + + + + ../../../opt/include/afb + afb-utilities + /usr/include/json-c + build/afb-utilities + + + + + + + afb-utilities + /usr/include/json-c + build/afb-utilities + + + -- cgit 1.2.3-korg