aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-03-05 17:59:26 +0100
committerSimon Ser <contact@emersion.fr>2021-03-05 17:59:26 +0100
commita02da8e6f671da41d71c7278a0ddcedaa99837f4 (patch)
tree9a7ed1b54182cae67fc56617b731cfac75607a19
parente6f6e1ad0a21caf7e5c622dd88fcf8aefc7c49df (diff)
backend/drm: add new writeback and SPI connector types
We already depend on libdrm 2.4.95, which is the first to have the writeback connector type.
-rw-r--r--backend/drm/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c
index c0e701b0..90b39de0 100644
--- a/backend/drm/util.c
+++ b/backend/drm/util.c
@@ -163,8 +163,10 @@ const char *conn_get_name(uint32_t type_id) {
case DRM_MODE_CONNECTOR_eDP: return "eDP";
case DRM_MODE_CONNECTOR_VIRTUAL: return "Virtual";
case DRM_MODE_CONNECTOR_DSI: return "DSI";
-#ifdef DRM_MODE_CONNECTOR_DPI
case DRM_MODE_CONNECTOR_DPI: return "DPI";
+ case DRM_MODE_CONNECTOR_WRITEBACK: return "Writeback";
+#ifdef DRM_MODE_CONNECTOR_SPI
+ case DRM_MODE_CONNECTOR_SPI: return "SPI";
#endif
default: return "Unknown";
}