Revert "audio: allow standby for direct track"
This reverts commit 9cd7ad101315e0bff4c5f171706c6f80c7e22644.
Prior CL allows Direct PCM tracks to enter standby on pause
which unfortunately causes timestamp frame position to reset to 0.
Test: Audio sanity test
Test: Verified in bug to remove the regression above.
Bug: 157609403
Change-Id: I5e0d43a0e50981a300bc05711b71efe0b7e22f98
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 89d0a85..5930117 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -6062,10 +6062,6 @@
bool trackPaused = false;
bool trackStopped = false;
- if ((mType == DIRECT) && audio_is_linear_pcm(mFormat) && !usesHwAvSync()) {
- return !mStandby;
- }
-
// do not put the HAL in standby when paused. AwesomePlayer clear the offloaded AudioTrack
// after a timeout and we will enter standby then.
if (mTracks.size() > 0) {