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

Commit b1d0f3c2 authored by Sharad Sangle's avatar Sharad Sangle
Browse files

Revert "audioflinger: don't call flush/resume if track is removed"

This reverts commit 63325523

Change-Id: Icc51373788e891ea4e9c748d1989d2fed733126c
parent 0aeb9483
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4863,13 +4863,11 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::DirectOutputThread::prep
    // If a flush is pending and a track is active but the HW is not paused, force a HW pause
    // before flush and then resume HW. This can happen in case of pause/flush/resume
    // if resume is received before pause is executed.
    bool paused = false;
    if (mHwSupportsPause && !mStandby &&
            (doHwPause || (mFlushPending && !mHwPaused && (count != 0)))) {
        mOutput->stream->pause(mOutput->stream);
        paused = true;
    }
    if (mFlushPending && paused) {
    if (mFlushPending) {
        flushHw_l();
    }
    if (mHwSupportsPause && !mStandby && doHwResume) {