Florian did a great job making the I2S sound module ready for the official Raspberry Pi Linux kernel. It is now much easier to enable HiFiBerry DAC support.
If you use a Raspbian-based distribution, it is just a command:
sudo rpi-update
This will install the latest Linux kernel and it will have HiFiBerry support. That means: no need to compile your own kernel! After installing the kernel, there is still some minor work to do:
- Enable HiFiBerry in /etc/modules, by adding the following lines to this file:
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dac
- Reboot
That’s it! After the reboot, you should see, that the sound card is enabled:
[email protected] ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0