2020-07-24 04:53 AM
Hi,
I am using STM32H745-Discovery as USB Audio Device. I am transferring audio data from PC to STM32 board via USB. Now STM32 board is configured as SPDIF output on SAI1 block B. So basically my audio from PC is getting played on SPDIF device attached to STM32 board. Now the issue I am getting is I have audio data with distortion. I guess the distortion is due to on Half and Full data received from USB to STM32 board I am converting that 16 bit usb data to 32 bit data and then transferring it to SAI DMA for SPDIF output.
Is there any way I can reduce this distortion or any way to directly pass 16 bit usb data as 32 bit to SAI DMA configured as SPDIF. Is it like if we process received usb data and process it and fill one by one DMA buffer then it will create distortion?
Let me know if required more details on it.
Thanks for help in advance.
Regards,
Nilesh