diff options
author | Eric Laurent <elaurent@google.com> | 2012-06-05 18:12:11 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-06-06 09:23:31 -0700 |
commit | 9a0d82df8fd681257bc5b29fb5e6c65fcc7cef5a (patch) | |
tree | 9e31aa4a1c1a6b52b24c124eab362b4b4a67fb4f | |
parent | 67c0a58e05f4c19d4a6f01fe6f06267d57b49305 (diff) | |
download | frameworks_av-9a0d82df8fd681257bc5b29fb5e6c65fcc7cef5a.zip frameworks_av-9a0d82df8fd681257bc5b29fb5e6c65fcc7cef5a.tar.gz frameworks_av-9a0d82df8fd681257bc5b29fb5e6c65fcc7cef5a.tar.bz2 |
audioflinger: modify fast mixer overrun management
Do not force sleep when an overrun occurs. This was for non
blocking audio HAL and is unused.
Keep statistics on overruns.
Bug 6605215.
Change-Id: I295455d4562201aa3814c88bdd6e52c9226712af
-rw-r--r-- | services/audioflinger/FastMixer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp index d8bed40..3bb7b44 100644 --- a/services/audioflinger/FastMixer.cpp +++ b/services/audioflinger/FastMixer.cpp @@ -483,7 +483,10 @@ bool FastMixer::threadLoop() (int) sec, nsec / 1000000L); dumpState->mOverruns++; } - sleepNs = periodNs - overrunNs; + // Code for non blocking audio HAL. Sleep time must be tuned to allow + // catching up after an underrun + // sleepNs = periodNs - overrunNs; + sleepNs = -1; } else { sleepNs = -1; ignoreNextOverrun = false; |