diff options
author | Eric Laurent <elaurent@google.com> | 2013-09-19 14:37:46 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-09-19 15:53:20 -0700 |
commit | ede6c3b8b1147bc425f7b923882f559a513fe23b (patch) | |
tree | ac3986f0521aa4a5af705299ab423ec9d5e98bfa /camera/Android.mk | |
parent | 5baf2af52cd186633b7173196c1e4a4cd3435f22 (diff) | |
download | frameworks_av-ede6c3b8b1147bc425f7b923882f559a513fe23b.zip frameworks_av-ede6c3b8b1147bc425f7b923882f559a513fe23b.tar.gz frameworks_av-ede6c3b8b1147bc425f7b923882f559a513fe23b.tar.bz2 |
audioflinger: fix lost offload thread resume event
It was possible that a resume request signaled by addTrack_l()
while waiting for an async write callback is lost. This is because
mSignalPending was not set and waitingAsyncCallback_l() would pause the
thread loop before executing prepareTracks_l().
The fix consists in using signal_l() method to wake the thread
loop o that mSignalPending is set.
Also make sure that sleepTime is reset to 0 when resuming to make sure
that we write any remaining bytes to the HAL.
Bug: 10810347.
Change-Id: If9a3b22cc3b9e6eb384a56c48c40e6258d0896ad
Diffstat (limited to 'camera/Android.mk')
0 files changed, 0 insertions, 0 deletions