drm/amd/display: No HDMI/DP audio on MSI RX 460

Submitted by Jan Andres on July 19, 2017, 5:56 p.m.

Details

Message ID 20170719175649.GA7951@pitr.home.jan
State New
Headers show
Series "drm/amd/display: No HDMI/DP audio on MSI RX 460" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Jan Andres July 19, 2017, 5:56 p.m.
Audio output doesn't work on HDMI and DP ports of my MSI RX 460 2G OC.

The line in question seems to assume some kind of correlation between
the numbering of the audio converters and the stream encoders, which
doesn't exist on my card: Here, the active stream encoders are indexed
2 and 3 while audios have index 0 and 1, so audio never comes up.

I can't judge if it's correct in general to simply drop the second part
of the condition, but this does fix the issue for me.

Signed-off-by: Jan Andres <jandres@gmx.net>
---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 9aff47eb33bd..f0183d5f0d0d 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1304,7 +1304,7 @@  static struct audio *find_first_free_audio(
 {
 	int i;
 	for (i = 0; i < pool->audio_count; i++) {
-		if ((res_ctx->is_audio_acquired[i] == false) && (res_ctx->is_stream_enc_acquired[i] == true)) {
+		if (res_ctx->is_audio_acquired[i] == false) {
 			return pool->audios[i];
 		}
 	}