summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastThread.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-01-29 10:02:44 -0800
committerGlenn Kasten <gkasten@google.com>2015-02-19 09:47:44 -0800
commitd2123e631834a887c2d8600c3ac43dda02d47cb9 (patch)
tree1b0fbc7dd7ffb18d7a7084f2cff34f82c61a25b2 /services/audioflinger/FastThread.h
parentad8510a339ffab330c2c46e5c247dd1cf9e15c22 (diff)
downloadframeworks_av-d2123e631834a887c2d8600c3ac43dda02d47cb9.zip
frameworks_av-d2123e631834a887c2d8600c3ac43dda02d47cb9.tar.gz
frameworks_av-d2123e631834a887c2d8600c3ac43dda02d47cb9.tar.bz2
Warmup cycles must be in range and consecutive
Change-Id: Ie8a40ec3547bdd62a1e2e05b11fb107c25841784
Diffstat (limited to 'services/audioflinger/FastThread.h')
-rw-r--r--services/audioflinger/FastThread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/audioflinger/FastThread.h b/services/audioflinger/FastThread.h
index 1330334..cb32e9d 100644
--- a/services/audioflinger/FastThread.h
+++ b/services/audioflinger/FastThread.h
@@ -58,7 +58,8 @@ protected:
long underrunNs; // underrun likely when write cycle is greater than this value
long overrunNs; // overrun likely when write cycle is less than this value
long forceNs; // if overrun detected, force the write cycle to take this much time
- long warmupNs; // warmup complete when write cycle is greater than to this value
+ long warmupNsMin; // warmup complete when write cycle is greater than or equal to this value
+ long warmupNsMax; // and less than or equal to this value
FastThreadDumpState *mDummyDumpState;
FastThreadDumpState *dumpState;
bool ignoreNextOverrun; // used to ignore initial overrun and first after an underrun
@@ -74,7 +75,8 @@ protected:
unsigned coldGen; // last observed mColdGen
bool isWarm; // true means ready to mix, false means wait for warmup before mixing
struct timespec measuredWarmupTs; // how long did it take for warmup to complete
- uint32_t warmupCycles; // counter of number of loop cycles required to warmup
+ uint32_t warmupCycles; // counter of number of loop cycles during warmup phase
+ uint32_t warmupConsecutiveInRangeCycles; // number of consecutive cycles in range
NBLog::Writer dummyLogWriter;
NBLog::Writer *logWriter;
status_t timestampStatus;