From 7c3b7df2b1fb4d29df74828861df5b9641134530 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Mon, 18 Dec 2017 23:50:33 +0100 Subject: Provide JSON request when ctl-set FAIL SPEC-1183 Change-Id: I27aa13d7113614b9ef69d09dccc21551cfe2445d Signed-off-by: Fulup Ar Foll --- ahl-policy/ahl-policy.c | 4 +- conf.d/cmake/config.cmake | 2 +- conf.d/project/ahl-audio4a-config.json | 2 +- nbproject/configurations.xml | 85 ++++++++++++++++++++++++++++++++++ nbproject/project.xml | 26 +++++++++++ 5 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 nbproject/configurations.xml create mode 100644 nbproject/project.xml diff --git a/ahl-policy/ahl-policy.c b/ahl-policy/ahl-policy.c index 90fe9f6..ade9117 100644 --- a/ahl-policy/ahl-policy.c +++ b/ahl-policy/ahl-policy.c @@ -228,7 +228,7 @@ static int PolicySetVolume(int iEndpointID, int iEndpointType, char *pHalApiName err = afb_service_call_sync(pHalApiName, "ctlset", j_query, &j_response); if (err) { - AFB_ERROR("Could not ctlset on HAL: %s with errorcode: %i",pHalApiName, err); + AFB_ERROR("Could not ctlset=%s on HAL: %s with errorcode: %i",json_object_to_json_string(j_query), pHalApiName, err); return POLICY_FAIL; } AFB_DEBUG("HAL ctlset response=%s", json_object_to_json_string(j_response)); @@ -290,7 +290,7 @@ static int PolicyGetVolume(int iEndpointID, int iEndpointType, char *pHalApiName err = afb_service_call_sync(pHalApiName, "ctlget", j_query, &j_response); if (err) { - AFB_WARNING("Could not ctlset on HAL: %s, errorcode: %i",pHalApiName, err); + AFB_WARNING("Could not ctlget=%s on HAL: %s, errorcode: %i",json_object_to_json_string(j_query),pHalApiName, err); return POLICY_FAIL; } AFB_DEBUG("HAL ctlget response=%s", json_object_to_json_string(j_response)); diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index cb88135..b89c5ed 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -103,7 +103,7 @@ if(IS_DIRECTORY $ENV{HOME}/opt/afb-monitoring) set(MONITORING_ALIAS "--alias=/monitoring:$ENV{HOME}/opt/afb-monitoring") endif() -set(CLOSING_MESSAGE "Debug: afb-daemon --name=afb-audio4a --port=1234 --ws-server=unix:/var/tmp/ahl-4a ${MONITORING_ALIAS} --binding=package/lib/afb-audiohighlevel.so --ldpaths=../../alsa-4a/build/package/lib:../../hal-sample-4a/build/package/lib --workdir=. --roothttp=../htdocs --token= --verbose ") +set(CLOSING_MESSAGE "Debug: afb-daemon --name=afb-audio4a --port=1234 --ws-server=unix:/var/tmp/ahl-4a ${MONITORING_ALIAS} --binding=package/lib/afb-audiohighlevel.so --ldpaths=../../4a-alsa-core/build/package/lib:../../4a-hal-reference/build/package/lib --workdir=. --roothttp=../htdocs --token= --verbose ") # Optional location for config.xml.in diff --git a/conf.d/project/ahl-audio4a-config.json b/conf.d/project/ahl-audio4a-config.json index 64c8141..4946e2c 100644 --- a/conf.d/project/ahl-audio4a-config.json +++ b/conf.d/project/ahl-audio4a-config.json @@ -3,7 +3,7 @@ "policy_module": "AudioPolicy_v1", "description": "High-level binding configuration file", "note": "Devices and routings are always listed in order of priority (for device selection rules)", - "hal_list": ["ensoniq","usb-audio"], + "hal_list": ["usb-audio"], "audio_roles": [ { "name": "Warning", diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml new file mode 100644 index 0000000..5bd3283 --- /dev/null +++ b/nbproject/configurations.xml @@ -0,0 +1,85 @@ + + + + + + filescan-utils.c + wrap-json.c + + + ahl-binding.c + ahl-config.c + ahl-deviceenum.c + ahl-json.c + + + ahl-policy.c + + + ahl-policy-utils.c + + + + build/Makefile + nbproject/private/launcher.properties + + + ^(nbproject)$ + + . + + build/Makefile + + + + default + false + false + + + false + + + + build + ${MAKE} -f Makefile + ${MAKE} -f Makefile clean + + + + . + + + + + . + + + + + build + cmake .. + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..91d2ad4 --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,26 @@ + + + org.netbeans.modules.cnd.makeproject + + + agl-service-audio-4a + c + + h,hpp + UTF-8 + + + . + + + + Default + 0 + + + + false + + + + -- cgit 1.2.3-korg