I2S misalignment with CS4272

toyosm

Well-known member
I got this codec to function with a driver I wrote in slave mode (couldn't make it work with the one provided by PJRC, even with the configuration changes posted on the forum), but I can hear a noise on the background of the signal, like a downsampling or aliasing. I'm thinking could be some misalignment on the I2S data.

Got the digital loopback function on the CS4272 and the sound is super clean. Then run a test with Line in and USB Out to check the ADC->SDI part and got the noise, but with USB In / Line Out there's no noise. So the problem is from the ADC and the transmission to the Teensy or how the Teensy gets the data. Tried different ADC configurations on the codec but no changes in that regard.

Attached are drivers I wrote. On the code I added a SGTL5000 object that's initialized but not used as I read somewhere on the forum it was necessary to do. Any known issues or ideas to get this sorted out?
 

Attachments

  • CS4272.cpp
    14.1 KB · Views: 14
  • CS4272.h
    2 KB · Views: 13
Unwanted Audio noise depends heavily on the wiring of the analog part. Especially the power supply of the analog frontend. They easily can pickup electronic noise (highspeed data transmission, etc) via air and via electric interferences. The drivers, per se, may not help to understand the problem. One would need the full picture (setup, resulting time series and spectrograms).
 
Back
Top