diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-07-25 15:35:46 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-07-26 09:11:03 +0300 |
commit | dc3a0934a177226f323d1f3c1ea92b2591c375a2 (patch) | |
tree | a73599fd698c937fb4d1a4a5f8598c04974277a2 /tests/kms_hdmi_inject.c | |
parent | 416cde5012dfef2e7ee4447bc2a2a40cfb762059 (diff) |
tests/kms_hdmi_inject: Accept any HDMI connector
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@linux.intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Simon Ser <simon.ser@intel.com>
Diffstat (limited to 'tests/kms_hdmi_inject.c')
-rw-r--r-- | tests/kms_hdmi_inject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c index 3da1028c..2a52087d 100644 --- a/tests/kms_hdmi_inject.c +++ b/tests/kms_hdmi_inject.c @@ -65,8 +65,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); |