summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-08-20 17:11:38 +0200
committerStefan Agner <stefan@agner.ch>2018-08-20 17:11:38 +0200
commit30e283de702421a6c92c12dd3c7adec2bf252c4c (patch)
treea75be87d0c90776c38c9c0d71cd71985932739d0
parent453345102818448c3078c0ce8f02e580c744a2a6 (diff)
downloadweston-30e283de702421a6c92c12dd3c7adec2bf252c4c.tar.gz
weston-30e283de702421a6c92c12dd3c7adec2bf252c4c.tar.bz2
weston-30e283de702421a6c92c12dd3c7adec2bf252c4c.zip
compositor-drm: add DPI connector type
Linux v4.7 introduced a new connector type for display parallel interface (DPI). Add DPI to the list of connectors in the DRM backend of Weston as well. This avoid DPI connectors showing up as UNNAMED. Signed-off-by: Stefan Agner <stefan@agner.ch>
-rw-r--r--libweston/compositor-drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 70e966c9..38911763 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -4549,6 +4549,9 @@ static const char * const connector_type_names[] = {
[DRM_MODE_CONNECTOR_VIRTUAL] = "Virtual",
[DRM_MODE_CONNECTOR_DSI] = "DSI",
#endif
+#ifdef DRM_MODE_CONNECTOR_DPI
+ [DRM_MODE_CONNECTOR_DPI] = "DPI",
+#endif
};
/** Create a name given a DRM connector