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 at samsung.com>
---
 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

Reply via email to