I installed pisound and everything worked fine.
Even after installing fan-shim everything was ok.
But after some time I realized there is no audio output anymore.
I repeatedly checked the GPIO contacts, but nothing changed.
The device is properly recognized via aplay, arecord and amidi.
But the speaker-test returned with an error
speaker-test 1.1.8
Wiedergabe-Gerät ist sysdefault
Stream-Parameter sind 48000 Hz, S16_LE, 2 Kanäle
Verwende 16 Oktaven rosa Rauschen
Rate ist 48000 Hz (angefordert: 48000 Hz)
Puffergröße von 128 bis 131072
Periodengröße von 64 bis 65536
Verwende maximale Puffergröße 131072
Perioden = 4
gesetzt: period_size = 32768
gesetzt: buffer_size = 131072
0 - Vorne links
1 - Vorne rechts
Schreibfehler: -5, Eingabe-/Ausgabefehler
xrun_recovery fehlgeschlagen: -5, Eingabe-/Ausgabefehler
Schreibfehler: Eingabe-/Ausgabefehler
Moreover, the input channel on the pisound board should work
properly as I realized that the red led starts to flash when an input
overlaod occurs.
Using an osciloscope I can’t measure any signals between pin 39 and 40 of the GPIO pins.
Concerning the power supply I am using the standard power supply
which should yield 3A actually.
Maybe some device is blocking the transfer?
In the output settings a webcam device USB 2.0 camera is to
be seen despite there is no camera connected anymore.
How can I remove this device?
In case it’s in use, you should get a ‘busy’ error instead of ‘I/O’.
Have you made any changes to your /boot/config.txt file that could interfere? Could you just in save the output of dmesg, and attach whole contents as a file?
It means the I²S peripheral failed to establish sync with Pisound’s ADC and DAC. This could be impacted by PCM_FS and PCM_CLK GPIO lines. You may inspect those pins on your board, and see if there’s any damage or missing components around them.
Thank you very much for your help.
I checked the respective pins, checked and even improved the soldering.
I can’t find any damage on components in the vicinity of the pins.-
But nothing changed.
After all I installed pisound on my Raspi 3.
And it worked. Therefore, the error is triggered from my
Raspi4 board. Maybe you can give any hints for testing
or approving the functionality of the board especially
the I2S.
Thank you very much for your support. I appreciate it.
Interesting. It could be that actually your Raspberry Pi 4 has one or more of its GPIOs damaged. There are some utilities to test it, with no hat attached: https://elinux.org/R-Pi_Troubleshooting#Testing
Are you using the same SD card on both boards? If not, you may try a fresh install of the OS with Pi 4 as well, just in case it’s some software issue, but it looks more like a hardware one.
Thank you very much for your efforts.
I already made a fresh install but with the same results.
I agree that it may be that some of the GPIO ports are damaged.
I will test it as soon as possible and send the results to you.
I did the test with gpiotest. Here are the results:
Skipped non-user gpios: 0 1 28 29 30 31
Tested user gpios: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Failed user gpios: None
Anything seems to be ok.
Here are some new findings.
Furthermore, I investigated the signals on the gpio pins with piscope
Pin 20: mosi shows a constant signal flow
After a reboot I select pisound as default device and
speaker-test -c2
Now signals are to be seen at Pin 21 clk.
But, when I issue the command the second time
both signals vanish and the same error message is issued as given above.
Hi, not sure that I am able to help, but I can confirm the finding: on a raspberrypi4 pimoroni fan-shim (! when controlled by the pimoroni python-script) conflicts with something in patchbox. The fan can run without the pimoroni script (it runs continuously then), but once the script is enabled sound breaks off. The pimoroni script runs as a service - when the service is disabled audio can recover…
Thanks for any considerations!
.r.
For me the noise has come down somewhat since I put elastic tape on all sides where walls of the case meet and set the feet on a soft cloth. The material of the pisound case is probably not ideal to reduce fan noise. It’s getting bearable now