This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to change USB Audio class in ncs

Hi,

I'm trying the USB Audio in ncs .

dts is like below:

&usbd {
	compatible = "nordic,nrf-usbd";
	status = "okay";

	hs_0 {
		label = "HEADSET";
		compatible = "usb-audio-hs";
		mic-feature-mute;
		mic-channel-l;
		mic-channel-r;

		hp-feature-mute;
		hp-channel-l;
		hp-channel-r;
	};
};

And prj.conf:

CONFIG_USB_DEVICE_AUDIO=y and other USB relevant  defines.

It works,and  the usb audio  data size from PC in 1ms is 192 bytes.

This is equal to 48K sample rate and 16bit.

And how to change the sample rate and other usb audio class params?

Thanks.

Parents Reply Children
Related