CS40L26: Fix race conditions between cl_dsp struct and sysfs access
Add mutex lock cl_dsp_lock on the following functions:
- cs40l26_cl_dsp_reinit()
- cs40l26_get_num_waves()
- f0_offset_store()
- owt_free_space_show()
Add flush_work to ensure proper synchronization during reset recovery
Bug: 324075191
Test: Primitive vibration with reset no KP
Test: idlcli commands
Test: Alarm, keyboard vibrations
Change-Id: I24cfc6631efcf4ccae64318e8a408facb3a76d4b
Signed-off-by: leonardian <leonardian@google.com>
3 files changed