OSDN Git Service

audioflinger: fix ro.audio.silent in offload again
authorEric Laurent <elaurent@google.com>
Tue, 24 Sep 2013 01:24:31 +0000 (18:24 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 24 Sep 2013 01:33:25 +0000 (18:33 -0700)
commit664539d25180ab8f77e0521533ea2821cf28985f
tree19b1c2a62d44ac7199249825aec131c70f6801ca
parent402dfba6dcd68f5fd8d8921f9751f3e47eb1449d
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
services/audioflinger/Threads.cpp