{"id":591,"date":"2020-02-25T12:15:39","date_gmt":"2020-02-25T12:15:39","guid":{"rendered":"https:\/\/blog.daft-ideas.co.uk\/?p=591"},"modified":"2020-02-26T11:53:55","modified_gmt":"2020-02-26T11:53:55","slug":"hdmi-audio-drop-outs-on-amd-5700xt-linux-investigation","status":"publish","type":"post","link":"https:\/\/blog.daft-ideas.co.uk\/2020\/02\/25\/hdmi-audio-drop-outs-on-amd-5700xt-linux-investigation\/","title":{"rendered":"HDMI Audio Drop outs on AMD 5700XT linux investigation"},"content":{"rendered":"
My new 5700XT card is only supported in newer linux kernels, so I am using 5.4.0-14-generic.<\/p>\n
Using this card plugged into my TV has been causing a lot of audio problems.
\nThe HDMI sound cuts out, frequently, for a few seconds at a time.
\nWatching a youtube video seems ok, but playing games or watching a full screen video shows the problem.
\nOriginally I though this was the specific game I was playing (Lego harry potter), but investigation showed that it also happened in other games and applications.<\/p>\n
I’ve tried various distros with the newer 5.x kernels and found the same problems.<\/p>\n
I have found that Pulseaudio is reporting a very low fragment and buffer size for the card:
\niain@monolith1:~$ pactl list sinks | grep size
\ndevice.buffering.buffer_size = “17664”
\ndevice.buffering.fragment_size = “2944”<\/p>\n
These numbers seem to be far too low.<\/p>\n
Checking ALSA directly gives me:
\niain@monolith1:~$ cat \/proc\/asound\/card0\/pcm0p\/sub0\/hw_params
\naccess: MMAP_INTERLEAVED
\nformat: S16_LE
\nsubformat: STD
\nchannels: 2
\nrate: 44100 (44100\/1)
\nperiod_size: 736
\nbuffer_size: 4416<\/p>\n
To “solve” the problem I did added the following to
\n\/etc\/pulse\/daemon.conf
\n; default-fragments = 2
\n; default-fragment-size-msec = 250<\/p>\n
These numbers were pulled from a post on ARCH forums,
\nhttps:\/\/bbs.archlinux.org\/viewtopic.php?id=223446<\/p>\n
Performing the calculations myself led to even worse results, so I used higher values suggested in various places.<\/p>\n
EDIT: This didn’t actually help in Lego Harry Potter. Time to try some more things.<\/p>\n","protected":false},"excerpt":{"rendered":"
My new 5700XT card is only supported in newer linux kernels, so I am using 5.4.0-14-generic. Using this card plugged into my TV has been causing a lot of audio problems. The HDMI sound cuts out, frequently, for a few seconds at a time. Watching a youtube video seems ok,… Continue reading