2022-09-20 05:16 PM
2022-09-20 05:58 PM
Not everything is machine generated.
Perhaps look at the schematics, and the CODEC settings.
Volume settings?
STM32Cube_FW_H7_V1.9.1\Drivers\BSP\STM32H735G-DK\stm32h735g_discovery_audio.c
STM32Cube_FW_H7_V1.9.1\Drivers\BSP\Components\wm8994\wm8994.c
2022-09-21 06:15 AM
I explored those files, but haven't yet found a solution. I tried adjusting the volume for as part of BSP_AUDIO_IN_Init(). The volume did adjust the dynamic range of the values (i.e., I could get integer values with different maximum like [-3000,3000] or [-10000,10000] up to [-32768,32767] for 16-bit resolution). But, the clipping still occurs at around 0.030 V.
I read in one of the BSP source files that the ADC has a range of [-Vref, Vref]. If that is the issue, then I am not sure how to adjust Vref.