Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e12f7302 authored by Andy Hung's avatar Andy Hung
Browse files

Revert "Remove powerlog from audio hal"

Allow power log on master.

This reverts commit 02caae5a.

Test: dumpsys audio_flinger
Change-Id: Ic156a87e4d0846fee080da6349cb56286d5802e7
parent 55f854ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3693,7 +3693,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,

    // 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;