Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback delay issue with IQAudio Pi Codec Zero audio HAT #307

Open
jonhelt-hansen opened this issue Oct 25, 2024 · 1 comment
Open

Playback delay issue with IQAudio Pi Codec Zero audio HAT #307

jonhelt-hansen opened this issue Oct 25, 2024 · 1 comment

Comments

@jonhelt-hansen
Copy link

Hi,
I have a IQAudio Pi Codec Zero HAT (black edition) used with RPI5 and latest Bookworm OS. I am developing an application with time critical audio feedback, but I keep seeing ~2 seconds delay on audio. Using "aplay my.wav" there is a playback delay of ~2 seconds, which disappear if I repeat the "aplay my.wav" command within ~3-5 seconds. If I wait longer the playback delay comes back. This is also what I see in my application.
In the /boot/firmware/config.txt I have tried with
dtoverlay=iqaudio-zero
and
dtoverlay=rpi-codeczero
Both give the same.
I have tested with different HATs and different RPI5 boards - all with same result, so this is general problem.
Any clues on potential solution?

@lurch
Copy link
Collaborator

lurch commented Oct 31, 2024

I also ran into this a while ago (back when I was originally testing the beta versions of Raspberry Pi OS Bookworm!). IIRC https://davejansen.com/disable-wireplumber-pipewire-suspend-on-idle-pops-delays-noise/ fixed the problem for me, but I then got pulled onto a different project so I completely forgot to follow up further on it.
(and I was a bit careless and accidentally snapped the microSD card on which I was recording all my test-results, whilst swapping a HAT between Pis 🤦‍♂️ )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants