08-12-2023, 01:59 AM
Below is a solution that mitigated PBP speaker issues for me using pulseaudio/alsa, such that crackling only happens on startup/shutdown.
The background noise/crackling problem is caused by the audio interface going to sleep.
Still, the noise floor (which is now constant since the device does not go to sleeep) remains high. To mitigate it use alsamixer and reduce the gain on left-most bar ("Speakers/Headphones") until noise level is acceptable. Save the settings to /etc/asound.state,
which is sourced on startup, with alsactl store
Some noise (resembling coil whine) will still present when using speakers - pavucontrol allows for changing the default port to headphones, which should make the noise disappear completely (and it is not noticeable on headphones, at least not on mine).
The background noise/crackling problem is caused by the audio interface going to sleep.
This power-saving functionality can be disabled in /etc/pulse/default.pa by commenting the line
Code:
### Automatically suspend sinks/sources that become idle for too long
#load-module module-suspend-on-idle # <- comment this
which is sourced on startup, with alsactl store
Some noise (resembling coil whine) will still present when using speakers - pavucontrol allows for changing the default port to headphones, which should make the noise disappear completely (and it is not noticeable on headphones, at least not on mine).