External Stereo hardware codec with nrf5340 Audio DK

Hello team,

I am trying to build an audio LE application where I require a stereo output and microphone input. As an initial part of the project, I am trying to connect an external stereo audio codec (da7212 from Renesas) with nrf5340 Audio DK. I was learning the drivers and API used in the nrf5340 audio application. Most of the times I find it hard to figure out the drivers and API. Can you please shed some lights here so that I am on the correct track?

I can see that the application has used nrfx_i2s driver. It is included in the audio_i2s file. And from the firmware-architecture it is clear that the audio_i2s.c is used for the audio streaming from and to the codec using i2s bus. I am finding it hard to modify the application files so as to add an external stereo codec. Karl Ylvisaker has already provided me some useful information about the hardware connections in a private post. I am attaching the screenshots below. 

It would be really helpfull if you could inform me which files and functions (in general) are to be modified to add in the required functionality. I understand that I will have to remove all the calls for the cirrus logic codec (CS47L63) and remove its configurations from the prj.conf. Can you also please refere me some documentation to help me understand the audio_i2s.c driver / file?

Thank you for your time,

Best regards,

Adarsh

Related