https://bugs.freedesktop.org/show_bug.cgi?id=103404
Bug ID: 103404 Summary: HDMI Audio with RX Vega not working on drm-next-4.15-dc (device listed as unconnected) Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: randomsalad@gmail.com
Created attachment 134990 --> https://bugs.freedesktop.org/attachment.cgi?id=134990&action=edit dmesg output filtered to show drm messages
When using a DC-patched kernel (the drm-next-4.15-dc branch to be specific), HDMI audio output on RX Vega does not work, as the device(s) are simply listed as unconnected.
Audio over DisplayPort works, but the second device (A 5.1 Surround Sound AV Receiver) does not register as an audio-output. It doesn't matter which port is used; All 4 physical monitor outputs (3 DisplayPorts, 1 HDMI), when connected to another device, be it the AV receiver or the monitor, fails to register any audio outputs. Only DisplayPort->DisplayPort works.
The attached dmesg log file shows both devices being connected and detected as audio outputs by drm, including the number of configurations available on each.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #1 from randomsalad@gmail.com --- Created attachment 134991 --> https://bugs.freedesktop.org/attachment.cgi?id=134991&action=edit Parsed edid output for the receiver.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #2 from randomsalad@gmail.com --- Created attachment 134992 --> https://bugs.freedesktop.org/attachment.cgi?id=134992&action=edit Parsed edid output for the monitor, connected via DP.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #3 from randomsalad@gmail.com --- Created attachment 134993 --> https://bugs.freedesktop.org/attachment.cgi?id=134993&action=edit cat /proc/asound/card0/eld#0.*
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #4 from monkeykulig@web.de --- I have exactly the same problem here with a rx vega 56 and rx vega 64
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #5 from Harry Wentland harry.wentland@amd.com --- It looks like we missed this when bringing up Vega. We got a patch in the works. It should land sometime this week.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #6 from monkeykulig@web.de --- Thank you for your quick response, I am glad to hear that a patch will be there soon
https://bugs.freedesktop.org/show_bug.cgi?id=103404
Leo sunpeng.li@amd.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sunpeng.li@amd.com
--- Comment #7 from Leo sunpeng.li@amd.com --- Created attachment 135191 --> https://bugs.freedesktop.org/attachment.cgi?id=135191&action=edit [PATCH 1/2] drm/amd: Add DCE12 resource strap registers
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #8 from Leo sunpeng.li@amd.com --- Created attachment 135192 --> https://bugs.freedesktop.org/attachment.cgi?id=135192&action=edit [PATCH 2/2] drm/amd/display: Read resource_straps from registers for DCE12
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #9 from Leo sunpeng.li@amd.com --- @randomsalad, I've attached the patches. Please let me know if they resolve the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #10 from randomsalad@gmail.com --- Created attachment 135197 --> https://bugs.freedesktop.org/attachment.cgi?id=135197&action=edit Compilation error for the patch
The proposed patch doesn't compile when applied to an otherwise clean version of drm-next-4.15-dc (commit id 9b38bd1b8f5c874c3d1f330e0dcf4e7d84137477 at time of writing). Does it rely on other changes present on the WIP branch? I've attached the compilation errors.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #11 from randomsalad@gmail.com --- Whoops, seems I blundered and didn't see there was not one, but two different patch files.
The compilation succeeds now, will proceed to testing it.
https://bugs.freedesktop.org/show_bug.cgi?id=103404
--- Comment #12 from randomsalad@gmail.com --- I can confirm the patch works, and was the only thing missing to get HDMI audio working on my Vega card. I can confirm it works for atleast 5.1 and 2.0 channel audio as those are the only options available to me with my Receiver, though this was just what I needed.
Thanks!
https://bugs.freedesktop.org/show_bug.cgi?id=103404
Leo Li sunpeng.li@amd.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #13 from Leo Li sunpeng.li@amd.com --- Thanks for the confirmation, marking this as resolved.
dri-devel@lists.freedesktop.org