Any PCM5102A board connected up to pins:
VIN = 3.3V (NOT 5V)
GND = GND
LCK = GPIO19/35 (PCM FS)
DIN = GPIO21/40 (PCM DOUT)
BCK = GPIO18/12 (PCM CLK)
SCK = GND
NB: 3.5mm on these boards will snap off so epoxy it down or route to another jack
# edit /boot/config.txt, and add:
dtoverlay=hifiberry-dac
# and remove:
dtparam=audio=on
# I M P O R T A N T
su root && aplay -l
# only root will see device, until:
sudo usermod -aG audio [user]
sudo nano /etc/modprobe.d/alsa-blacklist.conf
# add:
blacklist snd_bcm2835
sudo nano /etc/asound.conf
# add:
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
aplay -l
# -> should list sound output
speaker-test -D default -c 2 -twav
# -> left right voice
omxplayer -o alsa path/to/you/video.mov
# -> play video with sound