raspberry pi usb audio
You may have heard that raspberry pi build in 3.5mm jack audio playback quality is bad.
I just try it, not that bad.
Anyway, what i would like to try is a usb audio. Actually it is a TECSUN portable mp3/fm player, when plug in usb cable it will behave as a usb audio device.
$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
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 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: U0x19080x1335 [USB Device 0x1908:0x1335], device 0: USB Audio [USB Audio
As i can change audio output from HDMI to 3.5mm jack in raspi-config
, i don't know how to switch to usb device. Many answers on the web mention the /etc/modprobe.d/alsa-base.conf
, which can't found on jessie release.
Finally i got it right, by edit the ~/.asoundrc
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Change device 0 to 1, and reboot, it work.
Compare with the 3.5mm jack, not much different. With this little speakers, what can you expected?