summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-09-24 13:51:58 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-24 13:51:58 -0700
commit7ca821d51972bb83fa900cf2206ae98f29b33ca9 (patch)
tree717661c94824cf168da0c4b93394d21972bda419 /services/audioflinger
parent595f54fd2d4990b2ff311314b76a224969d7e79e (diff)
parent99ae06be60d7ccd753a0808191583225e5533f3a (diff)
downloadframeworks_av-7ca821d51972bb83fa900cf2206ae98f29b33ca9.zip
frameworks_av-7ca821d51972bb83fa900cf2206ae98f29b33ca9.tar.gz
frameworks_av-7ca821d51972bb83fa900cf2206ae98f29b33ca9.tar.bz2
Merge "Check clock_gettime(CLOCK_MONOTONIC) for failure" into jb-mr1-dev
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/FastMixer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp
index 13003d9..3c8a256 100644
--- a/services/audioflinger/FastMixer.cpp
+++ b/services/audioflinger/FastMixer.cpp
@@ -454,6 +454,9 @@ bool FastMixer::threadLoop()
if (oldTsValid) {
time_t sec = newTs.tv_sec - oldTs.tv_sec;
long nsec = newTs.tv_nsec - oldTs.tv_nsec;
+ ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0),
+ "clock_gettime(CLOCK_MONOTONIC) failed: was %ld.%09ld but now %ld.%09ld",
+ oldTs.tv_sec, oldTs.tv_nsec, newTs.tv_sec, newTs.tv_nsec);
if (nsec < 0) {
--sec;
nsec += 1000000000;