R9 285 Tonga with DC (only DC ever worked for HDMI audio with this card/TV combo)
Haven't tested any other use cases other than mine =
HDMI TV is off DVI-D monitor is on with X running, Turn on TV, do
xrandr --output HDMI-A-0 --auto && xrandr --output HDMI-A-0 --below DVI-D-0
Since this commit I get no sound.
Author: Charlene Liu <firstname.lastname@example.org>
Date: Wed Nov 15 18:55:57 2017 -0500
drm/amd/display: try to find matching audio inst for enc inst first
in eDP+ HDMI/DP clone or extended configuration, audio inst changed from inst 1 to inst0.
No failure related this though, just playback device endpoint inst changed.
Also remove one addition register read.
Still broken on latest drm-next-4.17-wip.
Tried booting with both screens on, no better.
This issue is related to AFMT_CNTL's AFMT_AUDIO_CLOCK_EN. sequence issue. fixed.
Thanks, I'll close when the fix makes it into something public.
Current agd5f drm-next-4.18-wip still has the issue.
What is the fix?
I see drm/amd/display: HDMI has no sound after Panel power off/on
just went in agd5f drm-next-4.17
But this does not fix this issue.
Created attachment 138816 [details]
dmesg with hdmi warnings
Hmm, maybe something else is going wrong.
I am getting hdmi warnings in dmesg (attached) when enabling the TV - I haven't seen these before when testing this issue.
It seems that
HDMI has no sound after Panel power off/on
is the cause of the warnings.
I tested 4.18-wip, no sound of course but nothing in dmesg.
I then applied "HDMI has no sound after Panel power off/on" as a patch and get no sound + the warnings in dmesg on enabling the TV.
Remove the patch, then
git revert cfb071f7a9673109415d097125b3c12c16836acc
= working sound.
There were a couple of fixes wrt HDMI audio in DC v3.1.47. They've been merged today to https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next
I tried agd5f drm-next-4.19-wip, which reports
[drm] Display Core initialized with v3.1.47
but still no sound.
The warning/bt in dmesg is not there any more.
I have a new TV now and can't get hdmi audio working at all.
Maybe my use/setup of alsa doesn't help, but IIRC I did try and fail with a fedora live USB as well.
It works perfectly if I boot into Windows 7, so I know this TV/card combo is OK.