drm/amd/display: try to find matching audio inst for enc inst first
authorCharlene Liu <charlene.liu@amd.com>
Wed, 15 Nov 2017 23:55:57 +0000 (18:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Nov 2017 22:55:56 +0000 (17:55 -0500)
commitcfb071f7a9673109415d097125b3c12c16836acc
treee758c5e473792afcf24c6b4ba25a17a0691623ed
parent2b7c97d687e81db07d8c67b32ff920e7bf59444e
drm/amd/display: try to find matching audio inst for enc inst first

[Description]
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.

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c