nrf5340 usb device for audio

I have found that nrf5340 support the usb device function. It can be used for sound card which can receive the audio signal from the PC, and output the mic signal to PC.

And I have tested that function from the nrf5340_audio application.

My question is if we made a USB Docking, if i plug my device which uesd nrf5340 to the docking, can output music(for example, the i2s input to the nrf5340) to the docking which can convert it to analog signal so people can hear them through the wired headset.

Because i thought that first, may be the Docking shoud support the USB HOST function, and the second question is we need the nrf5340 to output the audio signal through the USB prot, not only the MIC signal, I don not know if there some limtations in that.

Thank you very much for helping.

Parents
  • Hello,

    I am not quite sure if I understand your topology correctly - you can indeed use the microphone on the nRF5340 LE Audio DK to output audio to a connected computer over USB, but the nRF5340 LE Audio can not serve as a USB Host.
    So, you are correct that you can have your nRF5340 LE Audio DK output the music to the docking (as digital, over USB), or it could output the audio as analog audio out through the headphone jack (by sending the digital audio to the onboard Cirrus Logic hardware codec DAC/DSP).

    Please elaborate on your intentions and topology if this did not fully answer your question.

    Best regards,
    Karl

  • Hello Karl,

    Thank you for your help. We plan to design an audio product with USB function and using battery. And we also want to design a docking for it, the docking can charging the device. So we need to consider whether it is possible to add a headphone jack on Docking so that users can listen to music through wired headphones. If we want to meet this requirement, we first need to evaluate whether it is possible to output music through the nrf5340 USB port.

    So, you are correct that you can have your nRF5340 LE Audio DK output the music to the docking (as digital, over USB).

    Does that means if the docking can work like PC(USB HOST), we can output the audio to it? You know, the nrf5340_audio application only can oputput the mic signal to PC. So I'm not sure if there are any limitations on USB role, such as USB devices can only being able to output MIC signal or if there are bandwidth limitations. Because we want to output the normal music signal, i think the resource requirment should be larger than mic.

    Thank you very much.

  • Unfortunately, I'm still extremely novice with Zephyr and nRF Connect, and don't yet know how to configure the USB peripheral at all. I've been following this thread hoping to learn from any progress you've made.

    My initial rabbit hole of study has been the CS47L63 DSP codec on the Audio DK, and I'm beginning to understand that well enough to authoritatively answer questions, but I can't help much with anything else.

    One of my future goals is to transceive 7.1 channel surround sound via I2S, but so far I've just barely learned to transmit one. Please post anything helpful you discover in your endeavors.

  • Hello, Karl.

    I'm sorry to bother you again, but may I ask if there is a way for my computer to recognize that my USB device(nrf5340 audio DK) has multi-channel characteristics, for example, i want to output to PC up to 4 or 6 channel mic signals, at least my PC need to recognize it has so much channel first. which is the foundation for me to continue working on it. Then i will to research how should i deal with the audio part.

    Thank you very much and looking forward for your reply.

  • hello.

    OK, if i find something useful, i will.

  • Hello Karl,

    I think it's best for me to open a new post to ask this question, because it wasn't the question I asked at the beginning

    the link is :(+) Does the nrf5340 audio DK can support the mutichannel USB device? - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

    And thank you very much!

  • Hello,

    Please note that when you're using windows, your USB descriptor will be cached. If you adjust parts of your usb descriptor after initial enumeration, windows will still load the first one.

    That is the reason why my PC can not  recognize, when i had changed the pid and vid, it worked.Joy

Reply Children
Related