I have an issue where there is a constant hissing/crackling noise through the headphones when the laptop is plugged in. The hissing disappears when the laptop is unplugged. The laptop is a Huawei Matebook 14 with an AMD Ryzen 5 APU. The crackling is present in Manjaro, Fedora and Linux Mint using Wayland or Xorg—but not on Windows 10, which leads me to believe that it is either a software issue, or a hardware issue that can be worked around somehow.
Audio through the speakers, and my external Soundblaster card, is not affected. I do not have any loopback devices in alsamixer. Turning the audio off has no effect (the noise is on top of the audio signal, if you understand what I mean). Nor does muting the microphone make any difference.
I have tried plugging the charger directly into the socket instead of my extension lead, and using a different USB-C charger, to no effect.
Does anyone have any ideas? I could really appreciate some help; even though it’s not a major issue, it’s very irritating.