commit | 5f12136299918ea30555f3481668ec0dbb775e5f | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Fri Jun 15 14:45:03 2012 -0700 |
committer | Eric Laurent <elaurent@google.com> | Tue Jun 19 08:35:34 2012 -0700 |
tree | 69acc85f312c0bf1577eeccf16e31e0ecd226269 | |
parent | 1222bb9d9551cdf84923ea342ca3f4210867bd9a [diff] |
audio policy: acquire lock for volume functions Acquire the AudioPolicyService mutex when executing setStreamVolumeIndex() and getStreamVolumeIndex(). These functions have become more complex and iterate on the list of opened outputs and it is safer to acquire the AudioPolicyService mutex to avoid concurrency with other functions. Bug 6626532. Change-Id: Ifdcbbbf13338fd9a59f694d43faa7ade143f94bf