Basically I have seen two problems with pipewire and the hifiberry:
- alsa_input.platform-soc_sound.stereo-fallback needs clock.quantum > 256 to not get packet loss. so a higher value, like 1024 works perfectly fine
- on the other hand there seems to be a problem with the echo-cancelling module, which exclusively works with clock.quantum=480. If the alsa_input.platform-soc_sound.stereo-fallback has another quantum set, packets get lost there also.
To force the quantum setting in pipewire i added this file:
~/.config/pipewire/pipewire.conf.d/custom.conf
Code: Select all
context.properties = {
default.clock.quantum = 480
default.clock.min-quantum = 480
default.clock.max-quantum = 480
}
node.rules = [
{
matches = [{ node.name = "alsa_input.platform-soc_sound.stereo-fallback"}]
actions = {update-props = {node.force-quantum = 480}}
}
]/boot/firmware/cmdline.txt
Code: Select all
isolcpus=3 nohz_full=3 rcu_nocbs=3~/.config/systemd/user/pipewire-pulse.service.d/cpu.conf
Code: Select all
[Service]
CPUAffinity=3