Manjaro KDE Headphone audio issues

Recently installed Manjaro KDE. Extremely new to Linux but so far everything seems to be working great except for one thing; when I plug in headphones I hear a crack/pop sound every time I start playing media. Anybody have an idea what might be causing this?
Thanks

there is an issue with the power-settings. if enabled it can happen that the soundchip is often activated and deactivated and this causes the crackling. to test if this is the reason you can test it temporarily with

echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
echo N | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller

if this is the reason you can make this changes permanent with

echo “options snd-hda-intel power_save=0 power_save_controller=N” | sudo tee /etc/modprobe.d/hda.conf