summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastMixer.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-06-01 10:49:51 -0700
committerGlenn Kasten <gkasten@google.com>2012-06-01 10:51:34 -0700
commit04a4ca4217e9b30342d5865024c340013d7184e8 (patch)
tree5e212501d1b93a5eedad01410dc863fef49ec258 /services/audioflinger/FastMixer.cpp
parentdadc0ddbfe309086801b479ddc91c55eeb2a9cbb (diff)
downloadframeworks_av-04a4ca4217e9b30342d5865024c340013d7184e8.zip
frameworks_av-04a4ca4217e9b30342d5865024c340013d7184e8.tar.gz
frameworks_av-04a4ca4217e9b30342d5865024c340013d7184e8.tar.bz2
Was calculating measured warmup time wrong
Bug: 6592923 Change-Id: I980c6fc69d78c569147ea44ce33a7f8a41739c91
Diffstat (limited to 'services/audioflinger/FastMixer.cpp')
-rw-r--r--services/audioflinger/FastMixer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp
index 52effb2..b0af6ed 100644
--- a/services/audioflinger/FastMixer.cpp
+++ b/services/audioflinger/FastMixer.cpp
@@ -161,6 +161,7 @@ bool FastMixer::threadLoop()
coldGen = current->mColdGen;
bounds = 0;
full = false;
+ oldTsValid = !clock_gettime(CLOCK_MONOTONIC, &oldTs);
} else {
sleepNs = FAST_HOT_IDLE_NS;
}