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
Great news! Do you know from what version? 3.10.20, or even newer? My latest openelec uses that kernel, and I love to try as soon as I receive my hifyberry DAC…
Current kernel that comes with rpi-update is 3.10.23, even newer than your kernel. However, check, if OpenELC already supports sound output to ALSA sound cards. With Raspbmc this should work soon. Maybe OpenELEC has it integrated already.
I guess I just have to test it in the current version (openelec 3.2.4).
I find some ALSA references in the changelog of Openelec 3.2 (=alsa 1.0.27) and in 3.2.3.
If it doesn’t work, I can see if the next update will work, or change to a different distro….
I will be waiting for the mail-man with my Hifiberry… :-)
I have 1 question, that I could not find on the web: Could you explain what the different modules do?
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dac
I love to understand the inner working: but if I understand the i2s standard correctly, just enabling i2s would give audio output?
We’ve added this to the FAQ. Check it out at http://www.hifiberry.com/products/dac/dac-faq/
Connected the device with Volumio 1.1 img (dated 23-12-2013) to my rapi, some observations:
– Needed to add, snd_soc_hifiberry_dac to /etc/modules manually.
– Do, sudo aplay -l and not aplay -l
– Change the volumio/menu/playback/[Volume control mixer] to “software”, failing to do so will send the cat up the roof and your speakers off the wall (the loudness is unbearable)
After setting the volume to an acceptable level, the music is playing nicely (in other words the system works)
Pingback: H4uh.com לילדים - אירועים,מתנות,מצווה,יום הולדת,חתונה,לחתונה,אטרקציות,לאירועים,נישואין,בר מצווה,סדנאות,לבר מצווה,החתונה,בת מצווה,ארועים,רווקות,