I installed version 18.10 of Ubuntu Linux (Gnome desktop), and when I play any audio (YouTube, for example) via the HDMI or DisplayPort it is corrupted by a crackling popping sound. This doesn't happen when using the headphone port.
I have found a fix for Gnome that requires editing the following line in nano /etc/pulse/default.pa :
modify this to become:
load-module module-udev-detect tsched=0
I then run pulseaudio -k in the terminal before restarting.
This seems to solve the problem on Ubuntu with Gnome, but the above line (load-module module-udev-detect) doesn't exist in other distributions, like Manjaro with KDE, so I'm at a loss as to what to do about it. I'd like to try other distributions, but this problem is stopping me. I have also tested a live-usb POP_OS install with the 5.0 Linux Kernel (19.04), and this has the same popping sound issue.
Any help would be greatly received.