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

Skip to content
Commit 625225c3 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by derek li
Browse files

audioflinger: pause direct output when buffer timeout



Previously, direct output can be paused when underrun is observed
for the first time, this can interrupt the playback even there is
PCM data cached in the driver, and underrun may be recovered
within on the next loop cycle. Pausing the HAL is unnecessary at
this time.
Only do HAL pausing when track is going to be removed for buffer
timeout, allow the client to fill the buffer for the next loop
cycle.

Test: directed test (see b/186596553)
Bug: 34711969
Bug: 157682459
Bug: 161089206
Bug: 186596553
authored-by: default avatarZhou Song <zhous@codeaurora.org>
Merged-In: I3707d883d0daa4ffd2baa9bd69aebf4bf9ddef4e
Change-Id: I3707d883d0daa4ffd2baa9bd69aebf4bf9ddef4e
(cherry picked from commit 82fa4811)
parent 87bcb22f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment