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

Commit f1e4f1c7 authored by Haofan Wang's avatar Haofan Wang Committed by Gerrit Code Review
Browse files

Merge "Revert "AudioFlinger: do not reset mHwPaused on flush"" into main

parents bea10729 3987e9d3
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -7169,14 +7169,11 @@ void DirectOutputThread::flushHw_l()
{
    PlaybackThread::flushHw_l();
    mOutput->flush();
    mHwPaused = false;
    mFlushPending = false;
    mTimestampVerifier.discontinuity(discontinuityForStandbyOrFlush());
    mTimestamp.clear();
    mMonotonicFrameCounter.onFlush();
    // We do not reset mHwPaused which is hidden from the Track client.
    // Note: the client track in Tracks.cpp and AudioTrack.cpp
    // has a FLUSHED state but the DirectOutputThread does not;
    // those tracks will continue to show isStopped().
}

int64_t DirectOutputThread::computeWaitTimeNs_l() const {