Yes!
I’ll come back to it once I either have gotten the audio to come through cleanly or gets a strong indication that it is something wrong with my Pi.
But a short recap so far of what I have done to get where I am for those who are interested:
I created a layer to have the kernel configuration include the Pisound module. A link describing how to do it can be found here, but instead use the names linux-raspberrypi.bbappend
and linux-raspberrypi/pisound.cfg
for example. My .cfg ended up looking like:
CONFIG_SND_SEQ_DEVICE=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_PISOUND=m
Afterwards there were a few more configurations that I needed. I have not tried to remove some of them to figure out which ones are actually needed, but these ones are the ones I needed to add either to my local.conf or as a layer:
ENABLE_DTOVERLAY = "1"
RPI_DT_OVERLAYS += "pisound-pi5"
# The following one was critical...
RPI_KERNEL_DEVICETREE_OVERLAYS += "overlays/pisound-pi5.dtbo"
RPI_EXTRA_CONFIG:append = " \
dtparam=i2s=on\n \
dtparam=audio=on\n \
dtoverlay=pisound-pi5\n"
For a raspberry pi 4 or earlier I guess you would replace each pisound-pi5
with just pisound
, as both exists as overlays.
I will now try the exact same Pi 5 with a stock Raspbian OS to see if the audio works there. If it does, it probably means that I still have something messed up with my Yocto setup.