2018-08-30 17:11:52 +02:00
|
|
|
Index: VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
|
|
|
|
===================================================================
|
|
|
|
--- VirtualBox-5.2.18.orig/src/VBox/Additions/linux/drm/vbox_mode.c
|
|
|
|
+++ VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
|
2018-08-30 18:55:18 +02:00
|
|
|
@@ -536,7 +536,11 @@ static void vbox_set_edid(struct drm_con
|
|
|
|
for (i = 0; i < EDID_SIZE - 1; ++i)
|
|
|
|
sum += edid[i];
|
|
|
|
edid[EDID_SIZE - 1] = (0x100 - (sum & 0xFF)) & 0xFF;
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
|
|
|
|
+ drm_connector_update_edid_property(connector, (struct edid *)edid);
|
|
|
|
+#else
|
|
|
|
drm_mode_connector_update_edid_property(connector, (struct edid *)edid);
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static int vbox_get_modes(struct drm_connector *connector)
|
|
|
|
@@ -703,7 +707,11 @@ static int vbox_connector_init(struct dr
|
2018-08-30 17:11:52 +02:00
|
|
|
drm_connector_register(connector);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
|
|
|
|
+ drm_connector_attach_encoder(connector, encoder);
|
|
|
|
+#else
|
|
|
|
drm_mode_connector_attach_encoder(connector, encoder);
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|