I got the Wolfson card working on a RPi 1B by following various posts and guides dotted around these forums and official guides etc. I thought I’d try to write a basic step-by-step for anyone who wants this all in one easy recipe (which is likely to include me in six months when I’ve forgotten what I did…)
Running Volumio 2.861
Enable ssh access and log in from a terminal/powershell (user volumio, password volumio)
cd /boot
sudo nano userconfig.txt (this is an existing file)
add this as a new line:
dtoverlay=rpi-cirrus-wm5102
ctrl-o to write ctrl-x to exit
cd /etc/modprobe.d
sudo nano cirrus.conf (this is a new file)
add these as separate new lines:
softdep arizona-spi pre: arizona-ldo1
options snd slots=snd-soc-rpi-cirrus,snd-bcm2835
ctrl-o ctrl-x
cd /volumio/app/plugins/system_controller/i2s_dacs
sudo nano dacs.json (this is an existing file)
Add this line to the list of RPi DACS (Keep the same spacings, it’s quite obvious how it should fit. I added it in the correct alphabetic position but I don’t know if this is necessary. The comma at the end is important!)
{“id”:“rpi-cirrus”,“name”:“RPi-Cirrus”,“overlay”:“rpi-cirrus-wm5102”,“alsanum”:“1”,“mixer”:"",“modules”:"",“script”:"",“needsreboot”:“yes”},
Exit ssh and reboot
ssh back in and download and extract the scripts file:
wget http://www.horus.com/~hias/tmp/cirrus/cirrus-ng-scripts.tgz
mkdir bin
cd bin
tar zxf …/cirrus-ng-scripts.tgz
Then you need to execute the appropriate script. I wanted analogue output from the line-out (green) port:
sudo ./Playback_to_Lineout.sh
Reboot (might not be necessary, but whatever)
Now you can use the web interface. Select the RPi-Cirrus from the Output Device dropdown menu (not from the I2S DAC menu, which is selected off on my machine)
Set volume control to Hardware and select linear (not natural) for volume curve (natural gave a very distorted sound) steps of five is a good choice for detents. Set volume to 50.
Select HPOUT2 Digital as the mixer control name (There is a huge list of options for this so be sure to pick the right one)
Enjoy sweet sounds!