Sound over HDMI is distorted after resume

Sound over HDMI (on external monitor speakers) is distorted (crackling) nearly after every resume from suspend.
Have to only run systemctl --user restart pulseaudio.service every time.

$ inxi -A
Audio:
  Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
  API: ALSA v: k6.9.3-3-MANJARO status: kernel-api
  Server-1: PulseAudio v: 17.0 status: active

I suggest clear user settings in home folder configuration

rm ~/.config/pulse/*; systemctl --user restart pulseaudio

If issue recurs, check status of pulseaudio units for error messages before restarting pulseaudio.service

systemctl -l --user status pulseaudio.*

and check volume levels for HDMI sink output for working and non-working state

pactl list sinks

Thanks. With “non-working state” you mean inactive HDMI when inbuilt speakers are the main active sound output device?

That did not help, unfortunately, I still hear crackling sounds (over some short interval).

$ pactl list sinks
Аудиоприёмник №1
        Состояние: SUSPENDED
        Имя: alsa_output.pci-0000_00_1f.3.analog-stereo
        Описание: Встроенное аудио Аналоговый стерео
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: нет
        Громкость: front-left: 62259 /  95% / -1,34 dB,   front-right: 62259 /  95% / -1,34 dB
                баланс 0,00
        Базовая громкость: 65536 / 100% / 0,00 dB
        Мониторный источник: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Свойства:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC3204 Analog"
                alsa.id = "ALC3204 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xed318000 irq 138"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a348"
                device.product.name = "Cannon Lake PCH cAVS"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Аналоговый стерео"
                device.description = "Встроенное аудио Аналоговый стерео"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Порты:
                analog-output-speaker: Динамики (тип: Динамик, приоритет: 10000, доступность неясна)
                analog-output-headphones: Наушники (тип: Наушники, приоритет: 9900, группа доступности: Legacy 2, недоступен)
        Активный порт: analog-output-speaker
        Форматы:
                pcm

Аудиоприёмник №2
        Состояние: RUNNING
        Имя: alsa_output.pci-0000_01_00.1.hdmi-stereo
        Описание: GP106 High Definition Audio Controller Digital Stereo (HDMI)
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 6
        Звук выключен: нет
        Громкость: front-left: 62259 /  95% / -1,34 dB,   front-right: 62259 /  95% / -1,34 dB
                баланс 0,00
        Базовая громкость: 65536 / 100% / 0,00 dB
        Мониторный источник: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
        Задержка: 1973 мкс, настроено на 2506 мкс
        Флаги: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
        Свойства:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "PHL 274E5"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xed080000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "10f1"
                device.product.name = "GP106 High Definition Audio Controller"
                device.string = "hdmi:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo"
                device.profile.description = "Digital Stereo (HDMI)"
                device.description = "GP106 High Definition Audio Controller Digital Stereo (HDMI)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Порты:
                hdmi-output-0: HDMI / DisplayPort (тип: HDMI, приоритет: 5900, доступен)
        Активный порт: hdmi-output-0
        Форматы:
                pcm

Working state = when audio playback to HDMI is not distorted (before resume)
Non-working state = when audio playback over HDMI is distorted (after resume)