Revert "AudioFlinger: do not reset mHwPaused on flush"
This reverts commit 88f1dd08f127ca918a261428aac7928defa156c3.
Reason for revert: b/347407260
Change-Id: I5be6b7e74fe46cf263c6cc7832911685b51a7bfc
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index fd5d5fc..bcd8b99 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -7145,14 +7145,11 @@
{
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 {