Show more audio devices in Windows System -> Sound

Discussions about USB Audio on XMOS devices
2020274022
New User
Posts: 3
Joined: Tue Oct 07, 2025 12:18 pm

Show more audio devices in Windows System -> Sound

Post by 2020274022 »

my xua_conf.h as below
#ifndef _XUA_CONF_H_
#define _XUA_CONF_H_

#define NUM_USB_CHAN_OUT 4 /* Number of channels from host to device */
#define NUM_USB_CHAN_IN 4 /* Number of channels from device to host */
#define I2S_CHANS_DAC 4 /* Number of I2S channels out of xCORE */
#define I2S_CHANS_ADC 4 /* Number of I2S channels in to xCORE */
#define MCLK_441 (512 * 44100) /* 44.1kHz family master clock frequency */
#define MCLK_48 (512 * 48000) /* 48kHz family master clock frequency */
#define MIN_FREQ 44100 /* Minimum sample rate */
#define MAX_FREQ 192000 /* Maximum sample rate */

#define EXCLUDE_USB_AUDIO_MAIN

#define XUD_TILE (0)
#define AUDIO_IO_TILE (0)

#define VENDOR_STR "XMOS"
#define VENDOR_ID 0x20B1
#define PRODUCT_STR_A2 "XUA_UAC2.0"
#define PRODUCT_STR_A1 "XUA_UAC1.0"
#define PID_AUDIO_1 1
#define PID_AUDIO_2 2
#define XUA_DFU_EN 0

#endif

It has been successfully registered as an XUA_UAC2.0 device, but in Windows System -> Sound, I see one 4-channel input device and one 4-channel output device. However, what I want is two 2-channel input devices and two 2-channel output devices. How can I achieve this? I've searched through the forums and couldn't find a solution, and I haven't found one in the documentation either.
User avatar
Ross
Verified
XCore Legend
Posts: 1283
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

This isn't something the design supports (without significant modification) I'm afraid.
Technical Director @ XMOS. Opinions expressed are my own
2020274022
New User
Posts: 3
Joined: Tue Oct 07, 2025 12:18 pm

Post by 2020274022 »

However, on a sound card that uses an XMOS chip, I only see one XMOS device in the Device Manager. But in System > Sound > Playback, there are two 2-channel XMOS devices to choose from, and the same applies to the recording section. Currently, I can only achieve one 4-channel playback device and one 4-channel recording device, which doesn't meet my needs. How can I achieve the same configuration as this sound card? Are there any relevant documents available? Thank you.
User avatar
Ross
Verified
XCore Legend
Posts: 1283
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

The developer of that sound card must have modified the code to support this by adding multiple audio interfaces in each direction.
Technical Director @ XMOS. Opinions expressed are my own
2020274022
New User
Posts: 3
Joined: Tue Oct 07, 2025 12:18 pm

Post by 2020274022 »

How can I add additional audio interfaces? Do it means modify the source code of lib_xua or lib_xud?
User avatar
Ross
Verified
XCore Legend
Posts: 1283
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

lib_xud will not need modifying, thats just the low level usb layer. Lib_xua will need modifying stating with the descriptors and then adding buffering and control for the two interfaces.
Technical Director @ XMOS. Opinions expressed are my own