Description
Describe the bug
Pisound is the I²S master, the default eeprom dt overlay we shipped it with is not working on Pi 5.
I've noticed issue #5724, and based on it I found that doing this procedure manages to load the driver and register the card successfully, the card then is usable:
- Add
dtoverlay=pisound,master
in/boot/config.txt
. - Power up Pi 5 without Pisound attached, to skip loading its hat eeprom.
- Run
sudo modprobe -r snd_soc_pisound
to unload the Pisound's driver (as it obviously failed to load without Pisound attached). - Carefully attach Pisound on powered on Pi 5.
- Run
sudo modprobe snd_soc_pisound
to load the Pisound's driver, it loads ok this time. - Check
amidi -l
,aplay -l
,arecord -l
- it's listed as expected.
Quick tests indicate that Pisound is fully operational once the driver manages to register the card.
Powering on the Pi 5 without Pisound attached, but with the dtoverlay line in config.txt, is necessary, otherwise the system does not boot at all when the hat eeprom is available, and the dtoverlay line for the same hat is there.
What should be done to make Pisound working on Pi 5 right out of the box?
Steps to reproduce the behaviour
Have Pisound attached as normal, the driver fails to register the card:
[ 3.200062] pisound: Detected Pisound card:
[ 3.200072] pisound: Serial: PS-3...
[ 3.200075] pisound: Firmware Version: 1.03
[ 3.200078] pisound: Hardware Version: 1.1
[ 3.200081] pisound: Id: ...
[ 3.200622] designware-i2s 1f000a0000.i2s: ASoC: error at snd_soc_dai_set_fmt on 1f000a0000.i2s: -22
[ 3.203481] pisound: snd_soc_register_card() failed: -22
Device (s)
Other
System
Raspberry Pi reference 2023-10-10
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 962bf483c8f326405794827cce8c0313fd5880a8, stage4
2023/10/30 16:45:10
Copyright (c) 2012 Broadcom
version 30de0ba5 (release) (embedded)
Linux raspberrypi 6.1.0-rpi4-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux
Logs
No response
Additional context
p.s. when reporting the issue I didn't find Pi 5 option in the devices list. :)