Skip to contentSkip to conversation

modetest: add connector names for missing kinds of connectors

PATCH New Hyungwon Hwang 1 participant 1 message Feb 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 modetest: add connector names for missing kinds of connectors

Without the matched name for the connector types, modetest prints invalid for that kinds of connectors like below:

Connectors:
id encoder status type size (mm) modes encoders
16 15 connected (invalid) 71x125 1 15

So this patch adds connector names for missing kinds of connector types.

---
 tests/modetest/modetest.c | 2 ++
 1 file changed, 2 insertions(+)
tests/modetest/modetest.c +2 -0
index 5fcf2a4..f5a973c 100644
@@ -168,6 +168,8 @@ struct type_name connector_type_names[] = {
 	{ DRM_MODE_CONNECTOR_HDMIB, "HDMI-B" },
 	{ DRM_MODE_CONNECTOR_TV, "TV" },
 	{ DRM_MODE_CONNECTOR_eDP, "eDP" },
+	{ DRM_MODE_CONNECTOR_VIRTUAL, "virtual" },
+	{ DRM_MODE_CONNECTOR_DSI, "dsi" },
 };
 
 static type_name_fn(connector_type)
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel