I wanted the XK-AUDIO-316-MC-AB to work as a sound card on my linux (Linux 5.15.131-1-MANJARO) system. I need 8x input and 8x output so I used:
The device has been detected.xmake CONFIG=2AMi8o8xxxxxx
lsusb:
Bus 003 Device 005: ID 20b1:f7d5 XMOS Ltd XMOS XTAG-4
Bus 001 Device 058: ID 20b1:0016 XMOS Ltd XMOS xCORE.ai MC (UAC2.0)
cat /proc/asound/card2/stream0
XMOS XMOS xCORE.ai MC (UAC2.0) at usb-0000:03:00.0-9, high speed : USB Audio
Playback:
Status: Running
Interface = 1
Altset = 2
Packet Size = 144
Momentary freq = 44105 Hz (0x5.8360)
Feedback Format = 16.16
Interface 1
Altset 1
Format: S32_LE
Channels: 8
Endpoint: 0x01 (1 OUT) (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Bits: 24
Channel map: FL FR FC LFE RL RR FLC FRC
Sync Endpoint: 0x81 (1 IN)
Sync EP Interface: 1
Sync EP Altset: 1
Implicit Feedback Mode: No
Interface 1
Altset 2
Format: S16_LE
Channels: 8
Endpoint: 0x01 (1 OUT) (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Bits: 16
Channel map: FL FR FC LFE RL RR FLC FRC
Sync Endpoint: 0x81 (1 IN)
Sync EP Interface: 1
Sync EP Altset: 2
Implicit Feedback Mode: No
Capture:
Status: Stop
Interface 2
Altset 1
Format: S32_LE
Channels: 8
Endpoint: 0x82 (2 IN) (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Bits: 24
Channel map: FL FR FC LFE RL RR FLC FRC
Music from the player or YouTube plays correctly. Also when I use aplay everything works fine.aplay -l
card 2: MCUAC20 [XMOS xCORE.ai MC (UAC2.0)], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
arecord -l
card 2: MCUAC20 [XMOS xCORE.ai MC (UAC2.0)], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
However, I cannot record sound through the microphone. The LEDs on XMOS are on, arecord (or another program... like audacity) starts without error (I also checked the ADC D0-D3 pins where the stream bits are visible). Recording starts but the track is silent (without any noise).
Does anyone have an idea?