Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfb9f3b0 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Eric Laurent
Browse files

AudioPolicyService: Synchronize access to AudioPolicyManager

Synchronize access to APM when getDevicesForStream is called
on APM.

Change-Id: I2ba6922341f035375270b02000ef5a7e078f6b5a
parent acd2186a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}