Does the nrf5340 audio DK can support the mutichannel USB device?

Hello,

In the nrf5340_aduio application. I found it support 2 channels both of output(mic signal) and input(audio signal) on the USB device.

But i want to know if it can support mutichannel for the USB devic? for example, support 4 or 6 channel mic signal to PC through USB.

I know if that possible, the driver and the audio process part both need to modify.

But first step i want to modiify the driver part first to make the PC can identify the decice has up to 4 or 6 channels, Even if it is only displayed on a PC, the audio part cannot function properly.

In the default sample, the Windows11 can recognized it:

Then I have tried to add the "mic-channel-c;" to the dt overlay file.

&hs_0 {
    mic-channel-c;
};

Then the PC seems can recognized the USB audio device, but there is no Advanced page to check the channel:

So can you help me to modify the driver part to make the PC can identify the right number of the channles?

I think if the driver part work well, then i can go to modify the audio processing part.

Thank you very much!

Parents Reply
  • Hello Håkon,

    I am back to ask for help.Grinning

    With your help, I successfully implemented multi-channel USB device functionality and changed the sampling rate to 16K.

    But when I was debugging, I found that my I2S clock would have an extra cycle every 55 seconds, which would result in my USB not having enough data to fill the I2S buffer. By the way, the audio data in my project is blocking every two milliseconds.

    I have seen in the nrf5340-audio example that drift compensation is called to each I2S interrupt. Is this intended to improve the issue of inaccurate I2S clocks?

    So, is there any other way for my I2S to synchronize with the USB clock while working?

    Thank you very much and looking forward for your reply.

Children
Related