HiFiBerry DAC+

From philcrump.co.uk
Jump to: navigation, search

Installation

Using 2016-05-27 Jessie Lite Image.

1. Comment out the default audio card in /boot/config.txt

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on

2. Enable HiFiBerry DAC+ drivers in /boot/config.txt

dtoverlay=hifiberry-dacplus

3. Create new file at /etc/asound.conf

pcm.!default  {
 type hw card 0
}
ctl.!default {
 type hw card 0
}

4. Reboot

Spotify

https://github.com/Fornoth/spotify-connect-web

Download binary app develop key from spotify and save in the directory.

./spotify-connect-web --name PiHiFi --username <user> --password <password> --bitrate 320 --playback_device hw --mixer Digital

Spotify from source

sudo apt-get install git python-dev python-pip libffi-dev libasound2-dev
git clone https://github.com/Fornoth/spotify-connect-web.git ~/spotify/
cd ~/spotify/
sudo pip install -r requirements.txt # takes a while

Copy libspotify_embedded_shared.so from a recent release into ~/spotify/

LD_LIBRARY_PATH=/home/pi/spotify/ python connect.py --name PiHiFi -c spotify.credentials --bitrate 320 --playback_device hw --mixer Digital