I bought a USB to 3.5mm stereo output card on amazon and plugged it in to my RPi 5. Everything looks correct but the system will not default to use it.
sarg314@raspberrypi5:~ $ cat /proc/asound/cards
0 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0
vc4-hdmi-0
1 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1
vc4-hdmi-1
2 [Audio ]: USB-Audio - AB13X USB Audio
Generic AB13X USB Audio at usb-xhci-hcd.1-1, full speed
So it's device #2. The output of lsusb looks right too. If I type
speaker-test -Dhw:2,0 -c2 -twave
It works fine. I actually get the right sounds out of the speakers. But if I try to play a .wav file, or play youtube video, I get no audio.
I tried editing alsa.conf to set "defaults.pcm.card" to 2 (instead of 0) and uncommenting "load card specific config files" line but that didn't work.
I'm thinking I just have to get the audio default device set to #2, but I don't seem to be able to do that. Can any one shed any light on this?
Thanks.
sarg314@raspberrypi5:~ $ cat /proc/asound/cards
0 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0
vc4-hdmi-0
1 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1
vc4-hdmi-1
2 [Audio ]: USB-Audio - AB13X USB Audio
Generic AB13X USB Audio at usb-xhci-hcd.1-1, full speed
So it's device #2. The output of lsusb looks right too. If I type
speaker-test -Dhw:2,0 -c2 -twave
It works fine. I actually get the right sounds out of the speakers. But if I try to play a .wav file, or play youtube video, I get no audio.
I tried editing alsa.conf to set "defaults.pcm.card" to 2 (instead of 0) and uncommenting "load card specific config files" line but that didn't work.
I'm thinking I just have to get the audio default device set to #2, but I don't seem to be able to do that. Can any one shed any light on this?
Thanks.
Statistics: Posted by sarg314 — Fri Jan 19, 2024 5:32 am