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

Commit 00e50dca authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "AudioFlinger: Fix read timestamp if HAL returns error" into rvc-dev am:...

Merge "AudioFlinger: Fix read timestamp if HAL returns error" into rvc-dev am: 2db02506 am: 985793c9 am: d262ceef am: 5d909bee

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

Change-Id: If7132488ccdae51cdf9a8ab12eef24ced70a9c7a
parents 39d2f0ae 5d909bee
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -7365,8 +7365,10 @@ reacquire_wakelock:

        // Update server timestamp with server stats
        // systemTime() is optional if the hardware supports timestamps.
        if (framesRead >= 0) {
            mTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] += framesRead;
            mTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_SERVER] = lastIoEndNs;
        }

        // Update server timestamp with kernel stats
        if (mPipeSource.get() == nullptr /* don't obtain for FastCapture, could block */) {