[PATCH] modetest: add connector names for missing kinds of connectors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Hyungwon Hwang <human.hwang@xxxxxxxxxxx>
---
 tests/modetest/modetest.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 5fcf2a4..f5a973c 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -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)
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux