@@ -32,7 +32,7 @@
#include <drm/amdgpu_drm.h>
#include <drm/drm_edid.h>
#include <drm/drm_fixed.h>
-
+#include <drm/drm_eld.h>
#include "dm_services.h"
#include "amdgpu.h"
#include "dc.h"
@@ -78,6 +78,7 @@ static void apply_edid_quirks(struct drm_edid_product_id *product_id,
}
}
+#define AMDGPU_ELD_DISPLAY_NAME_SIZE_IN_CHARS 13
/**
* dm_helpers_parse_edid_caps() - Parse edid caps
*
@@ -119,9 +120,10 @@ enum dc_edid_status dm_helpers_parse_edid_caps(
edid_caps->manufacture_week = product_id.week_of_manufacture;
edid_caps->manufacture_year = product_id.year_of_manufacture;
- drm_edid_get_monitor_name(edid_buf,
- edid_caps->display_name,
- AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS);
+ memset(edid_caps->display_name, 0, AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS);
+ memcpy(edid_caps->display_name,
+ &connector->eld[DRM_ELD_MONITOR_NAME_STRING],
+ AMDGPU_ELD_DISPLAY_NAME_SIZE_IN_CHARS);
edid_caps->edid_hdmi = connector->display_info.is_hdmi;