Enable USB DAC on Raspotify
I know nothing about Linux and wrestled with this over a couple of days. Here are the not-very-detailed steps that worked for me:
=====================
(Using a new Rpi4)
Install DietPi
:shutdown
Connect DAC via USB
Restart Rpi
Open:
:sudo dietpi-config
Audio Options>Soundcard>Select <<Your USB DAC>> or any USB device
Select>DietPi-Justboom, “EQ Enable [ON]”
Save backup of alsa.conf, then confirm that the following entries:
:sudo nano /usr/share/alsa/alsa.conf
defaults.ctl.card 1
defaults.pcm.card 1
Test output through DAC:
:speaker-test -c2 -t sine -f 500
Ctrl+c to exit
if good . . .
:sudo Dietpi-software
Install Raspotify
To set default bitrate to highest available . . .
Save backup of default/raspotify,, then:
:sudo nano /etc/default/raspotify
Change "#BITRATE=160" to:
“BITRATE=320”
:reboot
Save backup of asound.conf, then:
#sudo nano /etc/asound.conf
Change “pcm.!default{...” to:
pcm.!default{
type asym
playback.pcm {
type plug
slave.pcm "dmix:CARD=1,RATE=48000"
}
}
======================
The last entry was the magic for me. I believe the dmix entry is the essential part. Prior to making that change, the speaker test would work and all seemed well, but there was no sound when playing from Raspotify.
If you have questions or need details on the above, I'm not your guy. I hope this helps though!
Good luck!
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now