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

Skip to content
Commit c8c9ad6b authored by Divya Narayanan Poojary's avatar Divya Narayanan Poojary Committed by Gerrit - the friendly Code Review server
Browse files

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
parent e103ccd8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment