summaryrefslogtreecommitdiffstats
path: root/ahl-binding/ahl-config.c
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-01-03 22:50:22 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-01-03 22:50:22 +0000
commit545c14e62971b23c704bc3d7f696e934e330656d (patch)
tree11d4b8cafd7c0f37c9f8e935d96790951ed7203e /ahl-binding/ahl-config.c
parente78ac871cb1ea2feb0bd9331f812cf71e07acdf3 (diff)
parentf103d3380ee23dcce40c4a34b3517c35a7d67b29 (diff)
Diffstat (limited to 'ahl-binding/ahl-config.c')
-rw-r--r--ahl-binding/ahl-config.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ahl-binding/ahl-config.c b/ahl-binding/ahl-config.c
index 42c836d..0bd16f2 100644
--- a/ahl-binding/ahl-config.c
+++ b/ahl-binding/ahl-config.c
@@ -147,6 +147,7 @@ int ParseHLBConfig() {
pHAL = (char *)json_object_get_string(jHAL);
char * pHALName = g_strdup( pHAL );
g_ptr_array_add( g_AHLCtx.policyCtx.pHALList, pHALName );
+ AFB_INFO("High-level binding add dependency on HAL: %s", pHALName);
// Set dependency on HAL specified
err = afb_daemon_require_api_v2(pHAL,1) ;
@@ -183,7 +184,10 @@ int ParseHLBConfig() {
if (err) {
AFB_ERROR("Invalid audio role configuration : %s", json_object_to_json_string(jAudioRole));
return AHL_FAIL;
- }
+ }
+
+ AFB_DEBUG("Parsing configuration audio role: %s", pRoleName);
+
if (jOutputDevices)
{
json_type jTypeOutputDevices = json_object_get_type(jOutputDevices);
@@ -224,7 +228,7 @@ int ParseHLBConfig() {
if (iNumInDevices) {
err = EnumerateDevices(jInputDevices,pRoleName,ENDPOINTTYPE_SOURCE,pRoleInfo->pSourceEndpoints);
if (err) {
- AFB_ERROR("Invalid input devices : %s", json_object_to_json_string(jInputDevices));
+ AFB_ERROR("Invalid input devices for role %s : %s", pRoleName, json_object_to_json_string(jInputDevices));
return AHL_FAIL;
}
}
@@ -233,7 +237,7 @@ int ParseHLBConfig() {
if (iNumOutDevices) {
err = EnumerateDevices(jOutputDevices,pRoleName,ENDPOINTTYPE_SINK,pRoleInfo->pSinkEndpoints);
if (err) {
- AFB_ERROR("Invalid output devices : %s", json_object_to_json_string(jOutputDevices));
+ AFB_ERROR("Invalid output devices for role %s: %s", pRoleName, json_object_to_json_string(jOutputDevices));
return AHL_FAIL;
}
}