Raspberry Pi Setup

At this time, Jessie Raspbery Pi kernel does not support mono audio out of the I2S interface, you can only play stereo, so any mono audio files may need conversion to stereo!

Fast Install

Luckily its quite easy to install support for I2S DACs on Raspbian Jessie.

These instructions are totally cribbed from the PhatDAC instructions at the lovely folks at Pimoroni!

Run the following from your Raspberry Pi with Internet connectivity:

curl -sS https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | bash

You may need to reboot once. After rebooting, log back in and re-run the script!

You can then go to the next section on testing

Detailed Install

If, for some reason, you can't just run the script and you want to go through the install by hand - here's all the steps!

Update /etc/modprobe.d (if it exists)

Log into your Pi and get into a serial console (either via a console cable, the TV console, RXVT, or what have you)

Edit the raspi blacklist with

sudo nano /etc/modprobe.d/raspi-blacklist.conf

If the file is empty, just skip this step

However, if you see the following lines:

blacklist i2c-bcm2708
blacklist snd-soc-pcm512x
blacklist snd-soc-wm8804

Update the lines by putting a # before each line

Save by typing Control-X Y <return>

Disable headphone audio (if it's set)

Edit the raspi modules list with

sudo nano /etc/modules

If the file is empty, just skip this step

However, if you see the following line:

snd_bcm2835

Put a # in front of it

and save with Control-X Y <return>

Create asound.conf file

Edit the raspi modules list with

sudo nano /etc/asound.conf

This file ought to be blank!

Copy and paste the following text into the file

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

Save the file as usual

Add Device Tree Overlay

 Edit your Pi configuration file with

sudo nano /boot/config.txt

And scroll down to the bottom. If you see a line that says: dtparam=audio=on 

Disable it by putting a # in front.

Then add:
dtoverlay=hifiberry-dac

on the next line. Save the file.

Reboot your Pi with sudo reboot

Last updated on 2017-03-04 at 03.20.14 PM Published on 2016-05-23 at 04.36.24 PM