commit | fd34a9310659aa53e9e10d6826651577a75f6447 | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Wed Jul 19 07:03:52 2017 -0700 |
committer | Phil Burk <philburk@google.com> | Thu Jul 20 16:10:41 2017 -0700 |
tree | dc284d0eb17cbd8a023a2aec52d854c809b02c38 | |
parent | 679b6f6eaaeba35fcf96cb04a784308211d4b319 [diff] |
aaudio: reduce glitching by improving sleep timing ALways sleep a minimum time to avoid busy wait in real-time thread. Account for wakeup jitter in threads on the other side of a FIFO. Avoid race condition that caused a longer sleep than necessary. Fix calculation of mFreeRunning for capture mode. Also added systrace logging, which was used to debug this. Bug: 63814792 Test: Run GStomper on Walleye with MMAP on, see bug Change-Id: I7b20098580ff454365425bd21e43c17ade532a0a