Revert "Remove powerlog from audio hal"
Allow power log on master.
This reverts commit 02caae5a1581a19a9a8bdf9f34acb24dea76db5c.
Test: dumpsys audio_flinger
Change-Id: Ic156a87e4d0846fee080da6349cb56286d5802e7
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index cca56ec..e689b28 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3693,7 +3693,7 @@
// power_log may be null if the format is not supported
// or not a userdebug or eng build.
- if (false /* is_userdebug_or_eng_build() */) {
+ if (is_userdebug_or_eng_build()) {
const size_t POWER_LOG_FRAMES_PER_ENTRY =
(long long)config->sample_rate * POWER_LOG_SAMPLING_INTERVAL_MS / 1000;