Noise/Feedback on STM32H735G-DK when using line-in audio
I'm trying to prototype an audio effects unit with the STM32H735G-DK board. I am using the line-in input jack and output (headphone/line-out) jack.
There was no example using the line-in jack for the 35G-DK board as far as I could find. So I just referenced something from a F7.
Right now I have horrible feedback/noise on the output even when there is nothing in the playback buffer. I have verified that I can supply a 1khz square wave on the line-in and I see the waveform on the output but not without a bunch of noise. If I turn down my input source eventually the signal degrades and is over-powered by the noise.
I have scoured the WM8994 data sheet and I simply cannot seem to get rid of this noise.
Does anyone have any known-working code using this on the DK board? I only have one board so it is possible the CODEC is damaged.
Playback (stuffing the buffer with a 1khz square wave) without enabling the input side works fine.