commit | ae6cc0baaa3fdef7fe79a8d0de6493b951864370 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Aug 15 12:48:54 2017 -0700 |
committer | Baligh Uddin <baligh@google.com> | Wed Nov 08 14:35:15 2017 -0800 |
tree | 3f3b876b7a773c9ae259ac8d85c4f44c185cde60 | |
parent | faa5310de4b00a21e5c4d3187b3e64c2ec33741b [diff] |
AudioPolicyService: Acquire mutex for SoundTriggerSession Test: Enable always on GSA Bug: 64340921 Change-Id: I05d8c680be97ba4c92081425596addcc038f7dda
diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp index 1e63a05..2f7b1fb 100644 --- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp +++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
@@ -693,6 +693,7 @@ audio_io_handle_t *ioHandle, audio_devices_t *device) { + Mutex::Autolock _l(mLock); if (mAudioPolicyManager == NULL) { return NO_INIT; } @@ -702,6 +703,7 @@ status_t AudioPolicyService::releaseSoundTriggerSession(audio_session_t session) { + Mutex::Autolock _l(mLock); if (mAudioPolicyManager == NULL) { return NO_INIT; }