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

Commit 576f1361 authored by kuowei.li's avatar kuowei.li Committed by Andy Hung
Browse files

Fix AudioTrack cannot resume after underrun

Clear mPauseHwPending when updating track state on start().

Test: Manual
Bug: 187780419
Merged-In: I563162dd24ad2f56f898a239e8df848c7f80e122
Change-Id: I563162dd24ad2f56f898a239e8df848c7f80e122
parent ba72d94e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1065,6 +1065,8 @@ status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t ev
            reset();
        }

        // clear mPauseHwPending because of pause (and possibly flush) during underrun.
        mPauseHwPending = false;
        if (state == PAUSED || state == PAUSING) {
            if (mResumeToStopping) {
                // happened we need to resume to STOPPING_1