drm/amdgpu: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

Once EDID is parsed, the monitor HDMI support information is available
through drm_display_info.is_hdmi. The amdgpu driver still calls
drm_detect_hdmi_monitor() to retrieve the same information, which
is less efficient. Change to drm_display_info.is_hdmi

This is a TODO task in Documentation/gpu/todo.rst

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Claudio Suarez <cssk@net-c.es>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Claudio Suarez
2021-10-17 13:35:00 +02:00
committed by Alex Deucher
parent 0b7778f4a6
commit 3c02193102
7 changed files with 21 additions and 26 deletions

View File

@@ -59,7 +59,7 @@ void dm_helpers_free_gpu_mem(
void *pvMem);
enum dc_edid_status dm_helpers_parse_edid_caps(
struct dc_context *ctx,
struct dc_link *link,
const struct dc_edid *edid,
struct dc_edid_caps *edid_caps);