audio: Use perf hints from audio HAL for ULL and MMAP
- Use perf hints from audio HAL for ULL and MMAP
- compile audio perf statically with Audio HAL as this
is common feature
Change-Id: I072438653965db02894719b5d1cc59a967970447
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 59b0072..5fa0fc8 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3165,6 +3165,9 @@
if (adev->offload_effects_stop_output != NULL)
adev->offload_effects_stop_output(out->handle, out->pcm_device_id);
+ } else if (out->usecase == USECASE_AUDIO_PLAYBACK_ULL ||
+ out->usecase == USECASE_AUDIO_PLAYBACK_MMAP) {
+ audio_low_latency_hint_end();
}
if (out->usecase == USECASE_INCALL_MUSIC_UPLINK)
@@ -3572,6 +3575,11 @@
audio_extn_perf_lock_release(&adev->perf_lock_handle);
ALOGD("%s: exit", __func__);
+ if (out->usecase == USECASE_AUDIO_PLAYBACK_ULL ||
+ out->usecase == USECASE_AUDIO_PLAYBACK_MMAP) {
+ audio_low_latency_hint_start();
+ }
+
if (out->ip_hdlr_handle) {
ret = audio_extn_ip_hdlr_intf_open(out->ip_hdlr_handle, true, out, out->usecase);
if (ret < 0)