Merge "service: add logs to print device and sess_aif metadata" into audio-platform-arintf.lnx.1.0.c10
diff --git a/service/src/device.c b/service/src/device.c
index 808b927..5d509bc 100644
--- a/service/src/device.c
+++ b/service/src/device.c
@@ -738,9 +738,11 @@
{
int ret = 0;
+ AGM_LOGI("Setting device metadata for %s\n", dev_obj->name);
pthread_mutex_lock(&dev_obj->lock);
metadata_free(&dev_obj->metadata);
ret = metadata_copy(&(dev_obj->metadata), size, metadata);
+ metadata_print(&(dev_obj->metadata));
pthread_mutex_unlock(&dev_obj->lock);
return ret;
diff --git a/service/src/graph.c b/service/src/graph.c
index 0e79b8c..37352a5 100644
--- a/service/src/graph.c
+++ b/service/src/graph.c
@@ -919,6 +919,7 @@
}
if (meta_data) {
+ metadata_print(meta_data);
memcpy (&(gsl_cmd_prop.gkv), &(meta_data->gkv),
sizeof(struct gsl_key_vector));
gsl_cmd_prop.property_id = meta_data->sg_props.prop_id;
diff --git a/service/src/session_obj.c b/service/src/session_obj.c
index be3591a..2ab9f13 100644
--- a/service/src/session_obj.c
+++ b/service/src/session_obj.c
@@ -1746,6 +1746,7 @@
int ret = 0;
struct aif *aif_obj = NULL;
+ AGM_LOGI("Setting metadata for sess aif id %d\n", aif_id);
pthread_mutex_lock(&sess_obj->lock);
ret = aif_obj_get(sess_obj, aif_id, &aif_obj);
if (ret) {
@@ -1761,9 +1762,11 @@
sess_id:%d, aif_id:%d \n",
sess_obj->sess_id, aif_obj->aif_id);
}
+ metadata_print(&(aif_obj->sess_aif_meta));
done:
pthread_mutex_unlock(&sess_obj->lock);
+ AGM_LOGI("Exit");
return ret;
}