summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/AudioPolicyEffects.h
Commit message (Collapse)AuthorAgeFilesLines
* audio policy: fix lockup during mediaserver restartEric Laurent2014-10-071-4/+11
| | | | | | | | | | | | | | | When pre or post processing effects are applied by audio policy service automatically there is a potential lockup if the first call into AudioPolicyService is made while creating one of those effects. This is because effects are created with AudioPolicyService mutex held and effect creation calls into methods (e.g registerClient()) which also acquire the mutex. The fix consists in adding a new mutex to AudioPolicyEffects class and not hold the AudioPolicyService mutex when calling methods in of class. Bug: 17830596. Change-Id: Ie61c3671d3147f46e99ba208f39c1a3bf180779f
* frameworks: av: AudioPolicyEffect: Add refCount for each sessionbryant_liu2014-08-281-1/+3
| | | | | | | | | | | Audio framework stops and restarts AudioTracks on same audio session. Sometimes the AudioTrack start() comes before a stop(). As effects are linked to the session, they should only be created on the last stop() related to that session. Bug: 17201117 Change-Id: I19343e293d6b7b6b794fe05ebd0dd239ed3b075c
* Remove execute bitGlenn Kasten2014-07-211-0/+0
| | | | Change-Id: I1cf0c0d9375779b3074af12f4cbf9c1ec07bf4ff
* frameworks: av: services: audiopolicy: Added AudioPolicyEffectsbryant_liu2014-07-011-0/+187
Manage pre- and postprocessing effects defined in audio_effects.conf Change-Id: Idea1478e3d434f8ff66907adb3c77663db78d583