[HOWTO] SainSmart I2S HIFI DAC / PiFi DAC+ V2.0 on a Raspberry Pi v2 with OSMC 2016.01-2

I followed your steps but it took quite a bit more fiddling to get my exact same setup working. Found 09. How to make various DACs work · guussie/PiDS Wiki · GitHub which also didn’t work until I combined with your steps. It took a bunch of trial/error and I regression tested enough to know that what I did is the only way to make it all work:

a. edit /etc/modules which for my install was completely empty. “snd_bcm2835” wasn’t listed so I didn’t need to comment it out… Then I added the four lines from the github page:

sudo nano /etc/modules
bcm2708_dmaengine
snd_soc_pcm512x
snd_soc_hifiberry_dacplus
snd_soc_bcm2708_i2s

b. edit /boot/config.txt to have:
sudo nano /boot/config.txt
dtparam=i2c_arm=on
dtparam=i2s=on
dtoverlay=hifiberry-dacplus-overlay
dtparam=audio=off

c. edit /etc/asound.conf

sudo nano /etc/asound.conf
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}

d. reboot and “ALSA: Default (snd_rpi_hifiberry_dacplus Analog)” now shows up and the card outputs audio

Now to get airplay working…Sigh…