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

Commit 4c75ca37 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Revert "audio: allow standby for direct track" am: eeb744f5 am: a19e52de...

Revert "audio: allow standby for direct track" am: eeb744f5 am: a19e52de am: 039ab690 am: a04c5c37

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/11901472

Change-Id: I3860293592fe15f67acd04661282b1ce80622528
parents 75dc6895 a04c5c37
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -6061,10 +6061,6 @@ bool AudioFlinger::DirectOutputThread::shouldStandby_l()
    bool trackPaused = false;
    bool trackStopped = false;

    if ((mType == DIRECT) && audio_is_linear_pcm(mFormat) && !usesHwAvSync()) {
        return !mStandby;
    }

    // do not put the HAL in standby when paused. AwesomePlayer clear the offloaded AudioTrack
    // after a timeout and we will enter standby then.
    if (mTracks.size() > 0) {