From aebe1ab3a43ba1e42071d78d9400b1a401e8a2d0 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 28 Jan 2022 14:29:51 +0200 Subject: [PATCH] backends/drm: Detect more connector types --- src/backends/drm/drm_object_connector.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/backends/drm/drm_object_connector.cpp b/src/backends/drm/drm_object_connector.cpp index c28c9a50b0..580dfe429c 100644 --- a/src/backends/drm/drm_object_connector.cpp +++ b/src/backends/drm/drm_object_connector.cpp @@ -160,8 +160,15 @@ static QHash s_connectorNames = { {DRM_MODE_CONNECTOR_eDP, QByteArrayLiteral("eDP")}, {DRM_MODE_CONNECTOR_VIRTUAL, QByteArrayLiteral("Virtual")}, {DRM_MODE_CONNECTOR_DSI, QByteArrayLiteral("DSI")}, -#ifdef DRM_MODE_CONNECTOR_DPI {DRM_MODE_CONNECTOR_DPI, QByteArrayLiteral("DPI")}, +#ifdef DRM_MODE_CONNECTOR_WRITEBACK + {DRM_MODE_CONNECTOR_WRITEBACK, QByteArrayLiteral("Writeback")}, +#endif +#ifdef DRM_MODE_CONNECTOR_SPI + {DRM_MODE_CONNECTOR_SPI, QByteArrayLiteral("SPI")}, +#endif +#ifdef DRM_MODE_CONNECTOR_USB + {DRM_MODE_CONNECTOR_USB, QByteArrayLiteral("USB")}, #endif };