HiFiBerry DAC+ with Arch Linux

Bought a HiFiBerry DAC+ for my Raspberry Pi B+ from here

Installation was easy. Just plug it in on top of the Raspberry Pi GPIO pins.

hifiberry

Now here’s the tricky part. I have Arch Linux installed. Here’s what you have to do to get it to work with Arch.

First do this:

nano /etc/modules-load.d/raspberrypi.conf

Make sure your file looks like this:

snd_soc_bcm2708
bcm2708_dmaengine
snd_soc_hifiberry_dacplus

Save it and then make another file:

nano /etc/asound.conf

Make sure it contains the following:

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


Now reboot and do this:

aplay -l

This is the return:

[root@RaspberryPiB ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Notice it is Card 0 and Device 0

Make sure the /etc/asound.conf above has the appropriate card number listed in it. Reboot if you made a change to the Card numbers.

Thats about it. Should work.

Now the tricky part was getting it installed in my nice
GeauxRobot B+ case

I did the following tricky stuff with the existing hardware and the hardware which came with the HiFiBerry.

hifiberry

Now the way I’ve done this, using available hardware, the connector doesn’t fully bottom out on the GPIO pins on the board of the Raspberry Pi but it’s a more than adequate connection for operation, and it’s screwed down and not able to move upwards at all. Good enough, sez I.

This photo also provides a better view of the plastic posts and plastic nut holding the DAC board down.

hifiberry_connector_notes


And oh yeah, I use this Pi for Shairport streaming which makes it show up under iTunes as an Airplay device. I explain how to do that here

Screenshot 2014-11-10 09.34.22

So there’s a lot of ways to do this but I installed cronie which is a cron job app (hey I’m old school) and set a cron to start shairport at reboot.

Note that the card number differs from the example on the other link just above.


@reboot shairport -a AirPiB+ -o alsa -- -d hw:0,0

Screenshot 2014-11-10 09.29.11



Update:

The HiFiBerry DAC designed for the Raspberry Pi A and B versions also fits in a GeauxRobot case, although only the 3.5mm headphone jack version only will probably fit.

Here’s what I did.

hifiberrydac_note

And it just fits.

hifiberrydac1

It’s quite beautiful and sounds great as well.