diff options
author | Ramalingam C <ramalingam.c@intel.com> | 2019-08-13 13:30:10 +0530 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-08-14 12:49:56 +0300 |
commit | f50ce93c889c4fdc1fd63fd77626a96afd8388a3 (patch) | |
tree | afef2d82b69f4e99ededd3672504e9fe0ce58763 /lib/igt_kms.c | |
parent | eced11670da92bc338a162af6eeda39edd49cd12 (diff) |
lib/display_require: reset hdcp on all connectors
At the start of every test, reset HDCP state to UNDESIRED on all
connectors, so that we will not have any hdcp related noises in
the subsequent tests.
v2:
igt_output_set_prop_enum is used.
Documentation of display_reset is updated.
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111390
Reviewed-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index b0169f73..964a5747 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -1859,6 +1859,10 @@ static void igt_output_reset(igt_output_t *output) if (igt_output_has_prop(output, IGT_CONNECTOR_BROADCAST_RGB)) igt_output_set_prop_value(output, IGT_CONNECTOR_BROADCAST_RGB, BROADCAST_RGB_FULL); + + if (igt_output_has_prop(output, IGT_CONNECTOR_CONTENT_PROTECTION)) + igt_output_set_prop_enum(output, IGT_CONNECTOR_CONTENT_PROTECTION, + "Undesired"); } /** @@ -1871,6 +1875,7 @@ static void igt_output_reset(igt_output_t *output) * For outputs: * - %IGT_CONNECTOR_CRTC_ID * - %IGT_CONNECTOR_BROADCAST_RGB (if applicable) + * %IGT_CONNECTOR_CONTENT_PROTECTION (if applicable) * - igt_output_override_mode() to default. * * For pipes: |