PINE64
Workaround for crackling audio when music starts/stops - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: Workaround for crackling audio when music starts/stops (/showthread.php?tid=14439)



Workaround for crackling audio when music starts/stops - pato3 - 07-15-2021

When I start or stop playing any audio on my PBP, there will always be a crackling noise before and after, loud enough to make me worry about my external speaker system!

Finally I found a workaround to prevent this: I just continually play a sound file at zero volume in the background, that keeps the audio output active and the cracks are gone!

I use this command:
mpv --volume=0 --loop /path/to/audio/file.mp3

I thought some people might be interested in this workaround and use it as well.

Yes, this is far from a perfect solution, but for me it works so far and maybe one day an update will solve the issue :-)


RE: Workaround for crackling audio when music starts/stops - dsimic - 07-28-2021

Please, have a look at this forum post, which describes a somewhat better workaround, in the sense of possibly cosuming less CPU power. I've also created a kernel patch that makes it possible to turn off dynamic power management for the Pinebook Pro's audio codec, which eliminates the popping/crackling noises.  It will be released as part of a patch series that will resolve the remaining audio issues on the PineBook Pro.