USB Audio

For topics which do not fit in other specific forums.
CarlosRobayo23
Posts: 1
Joined: Sun Nov 01, 2020 9:21 pm

USB Audio

Unread post by CarlosRobayo23 »

Hello everyone.
Is there any way to get audio from USB. I would like to connect a wireless headset that comes with a USB dongle/transmitter. I already tried connecting the dongle to the OTC hub but I didn’t get any audio.
AngelicLiver
Top Contributor
Posts: 433
Joined: Fri May 29, 2020 8:50 am
Has thanked: 86 times
Been thanked: 120 times

Re: USB Audio

Unread post by AngelicLiver »

My understanding is that no, this would not be possible without significant modification to the Linux sub-system (and potentially drivers for the dongle).
zource
Posts: 2
Joined: Mon Nov 02, 2020 6:31 pm

Re: USB Audio

Unread post by zource »

I was able to get sound from my simple USB sound dongle. My USB sound dognle drivers was recognized. You can check with aplay -l

/usr/share/alsa# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

I changed card 0 to card 1 in /usr/share/alsa/alsa.conf and I changed to card 1 on: /etc/asound.conf

I hear the sound when I play a wave file:
aplay /usr/share/sounds/alsa/Front_Right.wav

But somehow I am not able to get sound from the different cores :(
User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: USB Audio

Unread post by Newsdee »

I don't think the cores send the mixed audio to the linux side for output.
User avatar
aberu
Core Developer
Posts: 1192
Joined: Tue Jun 09, 2020 8:34 pm
Location: Longmont, CO
Has thanked: 247 times
Been thanked: 411 times
Contact:

Re: USB Audio

Unread post by aberu »

You all are correct. The audio is not sent to the linux side of things, so unless you heavily modified the code of the MiSTer platform in general, usb audio devices won't work.
birdybro~
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: USB Audio

Unread post by Mellified »

Note that external MIDI sound modules (Roland MT-32 etc) do work. Linux is providing ALSA detection and MidiLink is integrated as well. Additionally, cores have a UART setting, which is set to send audio from the core to the MidiLink driver.

So it is possible, but probably not something we'll see anytime soon.
Post Reply