Setting up Speaker through the headphone jack on nRF5340 Audio DK

Hey, I'm pretty new to Nordic Development. I am working on nRF5340 Audio DK development board right now and I was trying to create a bluetooth speaker kinda setup using the development board. I'm writing all the code right from scratch and I have already completed the part of connecting the development board to my mobile device via bluetooth. I want to be able to stream audio data from my mobile to the speaker which is connected to the Headphone Jack provided in the audio dk. As far as I've read (please correct me if I'm wrong), the builtin headphone jack is connected to the Cirrus Logic DSP provided in the board. I couldn't find much documentation for working with the DSP and also the LC3 codec provided. Pease guide me through the procedure of setting up the speaker connected to headphone jack so i can stream music over my mobile phone.

  • Yes, first of all, I was facing issues routing the audio out to the external headphones. But as ace.johnny suggested, those files served a bit of help in configuring stuff as I intended, yet I'm still facing issues in integrating my own I2S header file which I have already mentioned in a separate thread.

    The audio application seems to be the only example which serves as a functional resource in understanding how components like hw-codec, sw-codec, and other audio components are coupled together on the audio dk. There are no stripped down examples for most of the components which don't include any complex moving parts, for example, there are only 2 examples for I2S interfacing which aren't really helpful because none of them use the inbuilt codec or atleast the HW codec which is present on the audio development board.

    I would highly suggest adding a couple more useful examples for the audio development board rather than having a single complex example which is a nightmare for beginners to navigate through.

  • SohamGhugare said:
    The audio application seems to be the only example which serves as a functional resource in understanding how components like hw-codec, sw-codec, and other audio components are coupled together on the audio dk.

    The reason for this is that the nRF5340 Audio DK was built specifically for the nRF5340 Audio application(s). I also want to stress that both LE Audio and I2S is complex and needs a high amount of resources to follow the specification and have a range of functionality. I understand that the application is large, and we have detailed documentation to pair with the source code to make the learning process simpler. (nRF5340 Audio overview and firmware architecture)

    SohamGhugare said:
    there are only 2 examples for I2S interfacing which aren't really helpful because none of them use the inbuilt codec or atleast the HW codec which is present on the audio development board.

    The I2S echo sample can be modified to work with the CS47L63, or, if not that, it can help you to get familiar with the I2S driver.

    Best regards,

    Maria

  • Yep, I figured that out, I've modified the I2S echo sample according to our requirements, still facing some issues with that too but I've opened a separate thread for it.

Related