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.
USB Audio
-
- Top Contributor
- Posts: 433
- Joined: Fri May 29, 2020 8:50 am
- Has thanked: 86 times
- Been thanked: 120 times
Re: USB Audio
My understanding is that no, this would not be possible without significant modification to the Linux sub-system (and potentially drivers for the dongle).
Re: USB Audio
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
/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
- Newsdee
- Top Contributor
- Posts: 873
- Joined: Mon May 25, 2020 1:07 am
- Has thanked: 104 times
- Been thanked: 239 times
- 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
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~
Re: USB Audio
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.
So it is possible, but probably not something we'll see anytime soon.