Do you have a delay when playing back audio from your AMD GPU over a display port cable? This should help fix it:

mkdir -p ~/.config/wireplumber/wireplumber.conf.d, and write the contents below to ~/.config/wireplumber/wireplumber.conf.d/disable-suspend.conf

monitor.alsa.rules = [
  {
    matches = [
      {
        # Matches all sources
        node.name = "~alsa_input.*"
      },
      {
        # Matches all sinks
        node.name = "~alsa_output.*"
      }
    ]
    actions = {
      update-props = {
        session.suspend-timeout-seconds = 0
      }
    }
  }
]
# bluetooth devices
monitor.bluez.rules = [
  {
    matches = [
      {
        # Matches all sources
        node.name = "~bluez_input.*"
      },
      {
        # Matches all sinks
        node.name = "~bluez_output.*"
      }
    ]
    actions = {
      update-props = {
        session.suspend-timeout-seconds = 0
      }
    }
  }
]

This is caused by the audio device going into suspend mode. Once written, restart the systemd units with: systemctl --user restart wireplumber pipewire pipewire-pulse. That’s it!

sources

  • https://wiki.archlinux.org/title/PipeWire#Noticeable_audio_delay_or_audible_pop/crack_when_starting_playback
  • https://discuss.cachyos.org/t/audio-delay-playing-anything/19998/7