diff options
author | Eric Laurent <elaurent@google.com> | 2013-09-23 18:24:31 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-09-23 18:33:25 -0700 |
commit | 664539d25180ab8f77e0521533ea2821cf28985f (patch) | |
tree | 19b1c2a62d44ac7199249825aec131c70f6801ca /services/audioflinger | |
parent | 402dfba6dcd68f5fd8d8921f9751f3e47eb1449d (diff) | |
download | frameworks_av-664539d25180ab8f77e0521533ea2821cf28985f.zip frameworks_av-664539d25180ab8f77e0521533ea2821cf28985f.tar.gz frameworks_av-664539d25180ab8f77e0521533ea2821cf28985f.tar.bz2 |
audioflinger: fix ro.audio.silent in offload again
Commit 1abbdb4 was not working 100% of the times because
it is possible that the offload thread loop never sleeps
after being created in which case the property is never read.
The loop now reads the property once when starting.
Bug: 10899309.
Change-Id: I2e2ca332f2d7086e59d65f6010378c4d9618ba9e
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/Threads.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index 5f36cab..b771e3b 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -2115,6 +2115,8 @@ bool AudioFlinger::PlaybackThread::threadLoop() // and then that string will be logged at the next convenient opportunity. const char *logString = NULL; + checkSilentMode_l(); + while (!exitPending()) { cpuStats.sample(myName); |