History log of /frameworks/av/services/audioflinger/ISchedulingPolicyService.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f59a4b393f4844c5bbc8d6212364bdddea33d232 02-Jul-2013 Eric Laurent <elaurent@google.com> fix scheduling policy service death detection

Check status of transactions to scheduling policy service
and re-acquire a binder interface in case of DEAD_OBJECT.

Bug: 8875559.
Change-Id: I1e00bd44e2d4723b3ec95d5c31d9652ba08e238a
/frameworks/av/services/audioflinger/ISchedulingPolicyService.cpp
f8197a6a9d9363cb52bb8a2c15c0e5a52064355e 23-Apr-2013 Glenn Kasten <gkasten@google.com> Remove timing jitter during startup of audio

This fixes a regression introduced recently, that increased timing jitter
during the startup of the FastMixer and AudioTrack callback threads.

The regression was to make requestPriority() asynchronous as a way to
avoid an apparent priority inversion in system_server. This means that
the target thread could run briefly with the initial priority, before
the new priority takes effect.

This change removes the startup jitter for FastMixer, by making the
requestPriority() synchronous again for that case. It doesn't matter
that this restores the priority inversion involving normal mixer thread,
because it happens during startup of both threads.

The change also removes the startup jitter for the AudioTrack callback
thread, by having the target thread check whether the requestPriority()
has completed yet. If not, the target thread blocks with a timeout
until the priority boost finishes.

Finally, we now log an error message if the expected priority boost
doesn't happen.

Bug: 8698989
Change-Id: Id590e9a274b70ec1ba85b44a585ee37a22e41cbc
/frameworks/av/services/audioflinger/ISchedulingPolicyService.cpp
8d480b86ec00396b37a22803fdfe5f7bef3d8e05 12-Apr-2013 Glenn Kasten <gkasten@google.com> Workaround: requestPriority() is one-way

Bug: 8565696
Change-Id: If5fcdf8593e1ca15bea45217bd683b43a2a106c7
/frameworks/av/services/audioflinger/ISchedulingPolicyService.cpp
1dc28b794587be22c90a97070d928f94586db638 24-Apr-2012 Glenn Kasten <gkasten@google.com> Use scheduling policy service

Change-Id: I3c09da1dc0de5039d0c15ce7fb2bc373fa398712
/frameworks/av/services/audioflinger/ISchedulingPolicyService.cpp