hal: Add logs for performance analysis.
Change logs and add new logs to get better understanding of
start time of various module
Change-Id: I9449ca7f820e49ff2bf79de38b19538be43445c5
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index f441d3b..f585454 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -4179,7 +4179,7 @@
}
audio_streaming_hint_end();
audio_extn_perf_lock_release(&adev->perf_lock_handle);
- ALOGV("%s: exit", __func__);
+ ALOGD("%s: exit", __func__);
if (out->usecase == USECASE_AUDIO_PLAYBACK_ULL ||
out->usecase == USECASE_AUDIO_PLAYBACK_MMAP) {
@@ -10797,7 +10797,7 @@
adev->use_old_pspd_mix_ctrl = true;
}
- ALOGV("%s: exit", __func__);
+ ALOGD("%s: exit", __func__);
return 0;
adev_open_err:
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 526a88f..0a34561 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -3166,6 +3166,7 @@
list_init(&operator_info_list);
list_init(&app_type_entry_list);
+ ALOGD("%s: enter", __func__);
adev->snd_card = audio_extn_utils_open_snd_mixer(&adev->mixer);
if (adev->snd_card < 0) {
ALOGE("%s: Unable to find correct sound card", __func__);
@@ -4055,6 +4056,7 @@
platform_reset_edid_info(my_data);
free(snd_card_name);
+ ALOGD("%s: exit", __func__);
return my_data;
}
@@ -10417,7 +10419,7 @@
goto done;
}
- ALOGD("%s: backend_tag_table[%s]: old = %s new = %s", __func__,
+ ALOGV("%s: backend_tag_table[%s]: old = %s new = %s", __func__,
platform_get_snd_device_name(device),
backend_tag_table[device] != NULL ? backend_tag_table[device]: "null",
backend_tag);
@@ -10433,7 +10435,7 @@
if (hw_interface_table[device])
free(hw_interface_table[device]);
- ALOGD("%s: hw_interface_table[%d] = %s", __func__, device, hw_interface);
+ ALOGV("%s: hw_interface_table[%d] = %s", __func__, device, hw_interface);
hw_interface_table[device] = strdup(hw_interface);
}
done: