Forráskód Böngészése

Merge "disp: msm: dsi: update default physical panel width and height"

qctecmdr 6 éve
szülő
commit
04dcddd7c0
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      msm/dsi/dsi_drm.c

+ 4 - 1
msm/dsi/dsi_drm.c

@@ -802,7 +802,7 @@ int dsi_connector_get_modes(struct drm_connector *connector, void *data,
 	const u8 edid_buf[EDID_LENGTH] = {
 		0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x44, 0x6D,
 		0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1B, 0x10, 0x01, 0x03,
-		0x80, 0x50, 0x2D, 0x78, 0x0A, 0x0D, 0xC9, 0xA0, 0x57, 0x47,
+		0x80, 0x00, 0x00, 0x78, 0x0A, 0x0D, 0xC9, 0xA0, 0x57, 0x47,
 		0x98, 0x27, 0x12, 0x48, 0x4C, 0x00, 0x00, 0x00, 0x01, 0x01,
 		0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
 		0x01, 0x01, 0x01, 0x01,
@@ -852,6 +852,9 @@ int dsi_connector_get_modes(struct drm_connector *connector, void *data,
 		goto end;
 	}
 
+	edid.width_cm = (connector->display_info.width_mm) / 10;
+	edid.height_cm = (connector->display_info.height_mm) / 10;
+
 	dsi_drm_update_dtd(&edid, modes, count);
 	dsi_drm_update_checksum(&edid);
 	rc =  drm_connector_update_edid_property(connector, &edid);