This is how I got the original Hifiberry Amp for Raspberry Pi A/B working with RuneAudio 0.3 and RuneUI 1.3.
Steps 1-7 draw upon popov's post here:
#45412.
Starting from a clean install:
1.
pacman -Syu
2.
pacman -S linux-raspberrypi
(If asked to resolve a conflict, choose "no")
3.
pacman -S linux-raspberrypi-headers
4.
nano /boot/config.txt
5. Change the last line to:
kernel = kernel.img
6.
nano /etc/modules-load.d/raspberrypi.conf
7. Replace the contents of raspberrypi.conf with:
bcm2708-rng
#snd-bcm2835
snd_soc_pcm5102a
snd_soc_hifiberry_amp
8.
nano /srv/http/app/templates/settings.php
9. Search ([CTRL] - [W]) for "hifiberry digi" and insert the following on a new line as the next entry:
<option value="hifiberryamp" <?php if($this->i2smodule === 'hifiberryamp'): ?> selected <?php endif ?>>HiFiBerry Amp</option>
10.
nano /srv/http/db/redis_acards_details
11. Search ([CTRL] - [W]) for "hifiberry digi" and insert the following on a new line as the next entry:
$redis->hSet('acards_details', 'snd_rpi_hifiberry_amp', '{"sysname":"snd_rpi_hifiberry_amp","extlabel":"HiFiBerry Amp (I²S)","mixer_numid":"1","mixer_control":"Playback Digital","hwplatformid":"01","type":"i2s"}');
12.
nano /srv/http/app/libs/runeaudio.php
13. Search ([CTRL] - [W]) for "hifiberry digi" and insert the following on a new line as the next entry:
case 'hifiberryamp':
sysCmd('modprobe bcm2708_dmaengine').usleep(300000);
sysCmd('modprobe snd_soc_wm8804').usleep(300000);
sysCmd('modprobe snd_soc_bcm2708_i2s').usleep(300000);
sysCmd('modprobe snd_soc_pcm5102a').usleep(300000);
sysCmd('modprobe snd_soc_hifiberry_amp');
break;
14.
reboot
The Hifiberry Amp is now an option on the "i2s kernel modules" dropdown on the "Settings" page. It's working for me, but make sure the volume isn't at 100% before testing output . . . .