Reduce the logs when fetching audio_get_a2dp_sink_latency() API.
Reduce the logs when fetching audio_get_a2dp_sink_latency() API.
CRs-Fixed: 2267044
Change-Id: I9ea8069cb724baeb800b5d2daf7ca91eba2a7c22
diff --git a/bthost_ipc/bthost_ipc.c b/bthost_ipc/bthost_ipc.c
index 5c07c36..72b3152 100644
--- a/bthost_ipc/bthost_ipc.c
+++ b/bthost_ipc/bthost_ipc.c
@@ -68,6 +68,7 @@
#endif
#define LOG_TAG "bthost_ipc"
+bool DEBUG = false;
static int bt_split_a2dp_enabled = 0;
/*****************************************************************************
** Constants & Macros
@@ -1358,7 +1359,7 @@
uint16_t audio_get_a2dp_sink_latency()
{
- ALOGW("%s: state = %s",__func__,dump_a2dp_hal_state(audio_stream.state));
+ ALOGD_IF(DEBUG, "%s: state = %s",__func__,dump_a2dp_hal_state(audio_stream.state));
pthread_mutex_lock(&audio_stream.lock);
if (update_initial_sink_latency)
{