Pi 3B, RuneAudio V0.3Beta and Pimoroni pHAT DAC Setup
Posted: 21 Jun 2018, 22:13
These steps detail what was necessary to get the pHAT DAC I2S output working on the subject setup. This related to RuneAudio build: beta-20160313. This is a modification of the instructions found at https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install. The files that need to be edited are different from those listed but the steps are about the same. The step numbers below correspond to those in the Manual Set Up section of the linked page.
Oh and by the way the unit worked perfectly! The sound quality is many times better than that out of the Pi audio. No static noise in the background, just clean clear audio!
A Word of Warning About the RuneUI Enhancements Addon. I really liked this minimal interface but unfortunately the start, stop, forward and backward controls no longer worked after this change. No idea why. Pity!
Disclaimer: As always your mileage may vary. I have not investigated if these steps will work on a Pi Zero and invite you to try them and report here. I cannot guarantee I will answer questions about the content of this post, but you're welcome to ask.
- All The Modules: There was no raspi-blacklist.conf in /etc/modprobe.d but there was a reference to snd-soc-pcm512x in snd-soc-pcm512x.conf.old but as this appears to be a backup file I made no changes to any files in this folder.
- Be Gone, Default Sound: There is no such file as /etc/modules, but a string very like snd_bcm2835 was found in /etc/modules-load.d/raspberrypi.conf. So I added a # to the front of the line snd-bcm2835 (note the dash not the underscore). I assume this deactivated the on-board sound output but I did not check.
- Sound Config: I created the file /etc/asound.conf and put in it the following code. I assume this was needed but did not check that it all still worked if it was not there.
- Code: Select all
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
- Device Tree: There was a file called /boot/config.txt and it contained a commented-out line containing hifiberry-dac so I uncommented it thus:
- Code: Select all
# Uncomment one of these lines to enable an audio interface
dtoverlay=hifiberry-dac
#dtoverlay=hifiberry-dacplus
#dtoverlay=hifiberry-digi
#dtoverlay=hifiberry-amp
Oh and by the way the unit worked perfectly! The sound quality is many times better than that out of the Pi audio. No static noise in the background, just clean clear audio!
A Word of Warning About the RuneUI Enhancements Addon. I really liked this minimal interface but unfortunately the start, stop, forward and backward controls no longer worked after this change. No idea why. Pity!
Disclaimer: As always your mileage may vary. I have not investigated if these steps will work on a Pi Zero and invite you to try them and report here. I cannot guarantee I will answer questions about the content of this post, but you're welcome to ask.