Audio data from the microphone becomes corrupted with junk values for a few milliseconds whenever the pdm_to_pcm_mics_on() function is called after pdm_to_pcm_mics_off() while audio data is being written via SAI. These APIs are part of the default SLN-LOCAL2-IOT SDK and example projects. I have confirmed that the issue occurs immediately after the PDM to PCM conversion, which utilizes the SLN_DSP_pdm_to_pcm API from the library (source code not available).
Could you assist in identifying the potential cause of this issue?
Notes:
- Mic data captured via SAI
- iMXRT106s MCU is used
Hi @dashdwan,
Could you please share more details on how you arrived at this conclusion? Are you using the default "sln_local2_iot_local_demo" example code? Under what circumstances on this demo did you see these corrupted values? How did you detect these corrupted values on your debug session? Are these corrupted values causing issues when executing the demo?
Any information that allows me to reproduce the issue on my side will be of great help to support you better.
BR,
Edwin.