I have a XMOS XK-AUDIO-316-MC-AB board (in its default jumper settings) that I am trying to use with a PC running Ubuntu 24.10 and trying to use the USB audio class 1.0/2.0 reference executable code (sw_usb_audio/app_usb_xk_316_mc/2AMi8o8xxxxx), but its not working, i.e. I can never get the audio to come out thru the speaker. Did anybody have any success with it?
Thanks
Ratin
XK-AUDIO-316-MC-AB with Linux Topic is solved
-
- Member++
- Posts: 17
- Joined: Fri Nov 15, 2024 2:40 am
-
- Member++
- Posts: 21
- Joined: Thu Mar 14, 2024 7:44 pm
I've noticed something maybe related:
Building the AN00246 example on the XK-AUDIO-316-MC-AB, using Ubuntu 24.04, the device isn't showing up in the GUI settings -> sound -> output -> output devices menu. However, it is otherwise enumerating correctly and shows up correctly in ALSA. I didn't used to have a problem with it showing up in the sound settings, but I'm not sure at what point it stopped showing up here. Is this the same problem that you are describing, or a different one?
EDIT: Interesting - I have now fixed the issue that I described by installing pulseaudio and restarting my computer. Have you got pulse audio installed and/or try restarting it?
Missing from Sound settings menu:

Present when listing playback devices using aplay:

Present when manually selecting the device in Strawberry media player:

Building the AN00246 example on the XK-AUDIO-316-MC-AB, using Ubuntu 24.04, the device isn't showing up in the GUI settings -> sound -> output -> output devices menu. However, it is otherwise enumerating correctly and shows up correctly in ALSA. I didn't used to have a problem with it showing up in the sound settings, but I'm not sure at what point it stopped showing up here. Is this the same problem that you are describing, or a different one?
EDIT: Interesting - I have now fixed the issue that I described by installing pulseaudio and restarting my computer. Have you got pulse audio installed and/or try restarting it?
Missing from Sound settings menu:

Present when listing playback devices using aplay:

Present when manually selecting the device in Strawberry media player:

-
- Member++
- Posts: 17
- Joined: Fri Nov 15, 2024 2:40 am
You are amazing. After installing pulseaudio, it works and "aplay -l" now shows the XMOS UAC2.0 device. I have to figure out what pulseaudio does that even ALSA can't do being at a lower level, which is to simply show the device as an audio output sink device based on USB device capabilities. The kernel USB subsystem already enumerated the device, I just had to add an udev rule for udevadmin to allow access to the device. Before installing and running pulseaudio, aplay -l only listed Nvidia audio devices cause I have a Nvidia GPU attached.
Update: Looks like pipewire and pipewire-pulse are the daemons running, not pulseaudio.
Update: Looks like pipewire and pipewire-pulse are the daemons running, not pulseaudio.