commit | 576f13616dadd8ccb20dae1b3714759cf41c930f | [log] [tgz] |
---|---|---|
author | kuowei.li <Kuowei.li@mediatek.com> | Tue May 11 18:02:32 2021 +0800 |
committer | Andy Hung <hunga@google.com> | Mon May 17 11:41:23 2021 -0700 |
tree | 6dd500680372d93a6558fbeda829ae498001cb0b | |
parent | ba72d94e9b0b4a8b1fb13cfd3b28296eedbfaaf0 [diff] [blame] |
Fix AudioTrack cannot resume after underrun Clear mPauseHwPending when updating track state on start(). Test: Manual Bug: 187780419 Merged-In: I563162dd24ad2f56f898a239e8df848c7f80e122 Change-Id: I563162dd24ad2f56f898a239e8df848c7f80e122
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index 3e04804..3258689 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp
@@ -1065,6 +1065,8 @@ 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