The codec and the MCU are complex enough, so you cannot expect this to work from the start. This requires work.
Important steps to get things running:
- Check supply voltages.
- Use I2C to read and dump codec registers. Likely there are some patterns to match the description of the codec chip, for example a silicon revision number or so.
- Once this works, try to modify configuration via I2C and read back to see whether configuration works as expected.
- Write realtime trace code to verify audio DMA operation (number of blocks passed to/from application, number of interrupts, error counts ..)
- Verify audio output. Does audio DAC perform as expected?
- What is required as setup for audio recording? Maybe the codec includes some audio routing, for example routing back I2S output data instead of ADC audio. Some codecs have mixers that need to be configured.
In the past i did a lot of this work and know it can be quite tedious. Good Luck!
Regards, Dieter