Pisound and Yocto?

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.

1 Like

Actually, you should copy both, as the kernel automatically selects the right one. This way it would have better compatibility with earlier Raspberry Pi models.

Thanks! Will do that!
Just wanted to say that everything works perfectly now, it was me that did something fishy with my software afterall. speaker-test and arecord both gave pleasant results with the Pisound, and I found the bug in my own SW as well so that works now too. The issue with the clipping remains but that is completely different story (I may need to solder something myself to keep things small..)
Anyways, thanks for all, and I shall see if I can wrap up the final things needed to use my layer for seemless use of Pisound with Yocto :slight_smile:

// Robin

1 Like