hal: acquire lock for init/deinit of surround sound record
During LPCM recording, audio source is created as part of setPCMRecording. The audio source created before this call is deleted. This results in additional adev_close_input_stream and adev_open_input_stream calls on Audio HAL. As ssr_init and ssr_deinit calls are not protected with lock and these calls come from different threads at the same time, crash is seen in ssr calls. Fix is to protect ssr_init and sst_deinit calls to avoid calling them simultaneously. CRs-fixed: 2111556 Change-Id: I192f19d2157f1902975fe1b30dc2595e093c14a7
Loading
Please register or sign in to comment