For those running Linux using Pipewire and Wireplumber (for example Fedora 36 or 37) I have managed to fix occasional crackle by changing the output format for the analog audio output. I have the newer Tempo audio codec.
This won’t fix the pop sound when the codec turns on and off but it should stop any crackling and pop noises when playing back audio.
Try adding this to a file named 51-fix-crackle.lua
in /usr/share/wireplumber/main.lua.d
then reboot:
rule = {
matches = {
{
{ "node.name", "equals", "alsa_output.pci-0000_00_1f.3.analog-stereo" },
},
},
apply_properties = {
[ "audio.format" ] = "S16LE" ,
},
}
table.insert(alsa_monitor.rules, rule)