[igt-dev] [PATCH i-g-t] lib/display_require: reset hdcp on all connectors
Ser, Simon
simon.ser at intel.com
Tue Aug 13 14:22:11 UTC 2019
On Tue, 2019-08-13 at 12:34 +0530, Ramalingam C wrote:
> 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.
>
> Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111390
> ---
> lib/igt_kms.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index b0169f73b752..68650ae3d7e9 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_value(output, IGT_CONNECTOR_CONTENT_PROTECTION,
> + 0);
This hardcodes UNDESIRED's value. Maybe we can use
igt_output_set_prop_enum instead?
> }
>
> /**
More information about the igt-dev
mailing list