[igt-dev] [PATCH i-g-t 4/4] tests/kms_hdmi_inject: Accept any HDMI connector

Ville Syrjala ville.syrjala at linux.intel.com
Wed Nov 7 17:39:25 UTC 2018


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Connector forcing works just fine even if it already has
something physically connected. So accept any HDMI connector
for the test.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_hdmi_inject.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index d26200006850..caf63064d899 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -41,8 +41,7 @@ get_connector(int drm_fd, drmModeRes *res)
 		connector =
 			drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);
 
-		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA &&
-		    connector->connection == DRM_MODE_DISCONNECTED)
+		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)
 			break;
 
 		drmModeFreeConnector(connector);
-- 
2.18.1



More information about the igt-dev mailing list