First few seconds of audio missing

Hello.

I just installed OpenSUSE Tumbleweed (network install, system updated) and I have this issue with audio.

My PC is connected to the TV with HDMI cable and the audio is also over HDMI. It’s Ryzen 4750G and its internal GPU

Issue: Every time I start playing audio there’s a 3s of silence and the audio starts and plays fine after that. When I pause audio playback for 1-2s and start again there is no delay. When I pause audio playback for 5s and start again there’s 3s of silence and then I can hear the audio. (audio is always in sync with the video, the issue is 3s of silence at the start)
My TV also displays this overlay when new device is connected or resolution is changed and it appears every time this problem occurs. This leads me to believe HDMI audio device is being put to sleep very aggressively, wakes up only when audio is playing and it takes 3s for it to wake up and play the sound.

**Is there a way to keep HDMI audio device alive all the time?
**

I have dual boot with windows on this machine and this problem doesn’t exist there. This is not hardware issue.

I had the same issue on the same machine when I had Arch based EndevourOS installed. I fixed it there by changing session.suspend-timeout-seconds in pipewire config, but this doesn’t exist in my OpenSUSE install.

I also tried commenting out module-suspend-on-idle in pulse configs, but that does nothing.

Does this happen with both display drivers? Amdgpu is probably best and in use for your GPU, but you might be using the modesetting display driver, and should try switching from whichever is running now to the other for troubleshooting purposes. This display driver primer is worth a read before discussing display issues, which may be responsible for the delay due to the carriage of audio over HDMI, and the primer touches on how to switch. inxi -GAa in Konsole, Xterm or equivalent GUI terminal will give us more info for trying to track this down. Is your HDMI cable length a typical short one, or something lengthy? For detailed audio troubleshooting info there is sudo alsainfo.sh that you can susepaste for sharing, rather than pasting such a long document, like so:

sudo alsainfo.sh | susepaste

Then just paste the resulting URL here.

This thread might be better responded to if you get the mods to move it to the multimedia forum.

Will be moved to multi-media.

Which video player is in use?
Try to use ALSA output instead of PulseAudio.
I have delays with HDMI output with PulseAudio because of my settings for sound. It needs transcoding (changing frequency).