summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2015-10-26 18:22:13 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-11-02 22:58:23 -0800
commit1fb6c97d6cf1ae3264605d912b4e034809e2103a (patch)
tree525923b79b121d92ebbbde05499801625156ff0f /services/audiopolicy
parentf140e521f51b2d48c1f983c2790f4ab55b6dfac9 (diff)
downloadframeworks_av-1fb6c97d6cf1ae3264605d912b4e034809e2103a.zip
frameworks_av-1fb6c97d6cf1ae3264605d912b4e034809e2103a.tar.gz
frameworks_av-1fb6c97d6cf1ae3264605d912b4e034809e2103a.tar.bz2
AudioPolicyService: Synchronize access to AudioPolicyManager
Synchronize access to APM when getDevicesForStream is called on APM. CRs-Fixed: 913227 Change-Id: I2ba6922341f035375270b02000ef5a7e078f6b5a
Diffstat (limited to 'services/audiopolicy')
-rw-r--r--services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
index 793c26a..58ecb11 100644
--- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
+++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
@@ -459,6 +459,7 @@ audio_devices_t AudioPolicyService::getDevicesForStream(audio_stream_type_t stre
if (mAudioPolicyManager == NULL) {
return AUDIO_DEVICE_NONE;
}
+ Mutex::Autolock _l(mLock);
return mAudioPolicyManager->getDevicesForStream(stream);
}