OSDN Git Service

audioflinger: fix duplicating thread standby
authorEric Laurent <elaurent@google.com>
Fri, 8 Jun 2012 00:16:09 +0000 (17:16 -0700)
committerEric Laurent <elaurent@google.com>
Fri, 8 Jun 2012 00:16:09 +0000 (17:16 -0700)
commita4f7e0e9a0e92a063f1b3a08988cf46e2cf1fa94
tree007deb0f276a01d2276a953d2a493cf4f7d11d50
parente35a55fbdff5a695ee35ff43f1466a62fb75662b
audioflinger: fix duplicating thread standby

The code that waits for a track presentation to be complete
before disabling it caused a regression for duplicating threads.
Because of the way output tracks activity is managed, the number
of frames output by the duplicating thread would never
reach the target set for a track to be considered presented.
The track would not be removed from active list and the thread would
not go to standby and keep its wakelock held.

Bug 6606922.

Change-Id: I4b46b420ac4cbf79a86b6791ae6589d407b01c92
services/audioflinger/AudioFlinger.cpp