This process will work on all devices I have created.
All pre-made images available to
download are already configured with this driver
1. Login into your Raspberry Pi via
Putty2. Edit the raspi blacklist with:
sudo nano /etc/modprobe.d/raspi-blacklist.conf
If the file is empty, just skip this step, However, if you see the following lines:
blacklist i2c-bcm2708
blacklist snd-soc-pcm512x
blacklist snd-soc-wm8804
Update the lines by putting a # before each line
3. Save by typing Control-X Y <return>
Disable headphone audio (if it's set)
1. Edit the raspi modules list with
sudo nano /etc/modules
If the file is empty, just skip this step, however, if you see the following line:
snd_bcm2835
Put a # in front of it
2. Save with Control-X Y <return>
3. Create asound.conf file
Edit the raspi modules list with
sudo nano /etc/asound.conf
This file should be blank.
4. Copy and paste the following text into the file:
pcm.speakerbonnet {
type hw card 0
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "speakerbonnet"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
channels 2
}
}
ctl.dmixer {
type hw card 0
}
pcm.softvol {
type softvol
slave.pcm "dmixer"
control.name "PCM"
control.card 0
}
ctl.softvol {
type hw card 0
}
pcm.!default {
type plug
slave.pcm "softvol"
}
5. Save the file as usual
Add Device Tree Overlay
1. Edit your Pi configuration file with
sudo nano /boot/config.txt
And scroll down to the bottom. If you see a line that says:
dtparam=audio=on
2. Disable it by putting a # in front.
3. Then add:
dtoverlay=hifiberry-dac
dtoverlay=i2s-mmap
4. Save the file.
5. Reboot your Pi with:
sudo reboot
Related Articles
Manually adding the Safe Shutdown Script
This process works for all devices. All pre-made images available to download are already configured with this script 1. Login to your Raspberry Pi via Putty 2. Edit the config.txt file sudo nano /boot/config.txt 3. Add the following lines to the end ...
Desktop Arcade - What is it?
A custom miniature arcade kit. Runs on a Raspberry Pi and allows you to play thousands of retro games using Retropie. Uses rechargeable lithium batteries which can be recharged via USB-C or runs on mains power. Includes safe shut-down and power-off ...
Safe Shutdown GPIO Module
The Raspberry Pi Safe Shutdown Module is designed to be plugged into the 40 Pin header of your Raspberry PI. An 8 pin header block is provided that needs soldering to the Safe Shutdown board. Alternatively you can wire the board manually if you need ...
Zega Mame Boy Advance Solder Guide
Top Side PWR: LED (RED) ACT: LED (GREEN) Bottom Side LED1 - LED (RED) LED2, LED3, LED4: LED (GREEN) SW1, SW2: Trigger R1: 1MΩ R2, R6, R7: 2KΩ R3, R4: 2Ω R5: 10Ω C1, C2, C7, C8, C9, C10: 10uF C3: 100nF C4, C5, C6: 22uF Q1: SS (Safe Shutdown) IC Q2: ...
Zega Mame Boy Pre-install Checks
Installation of the Zega Mame Boy+ requires soldering to complete the setup. Only attempt if you are confident in your soldering ability. By attempting to complete the setup of the Zega Mame Boy+ you are confirming that you accept responsibility for ...