diff options
| author | Ramalingam C <ramalingam.c@intel.com> | 2019-07-03 15:24:41 +0530 |
|---|---|---|
| committer | Ramalingam C <ramalingam.c@intel.com> | 2019-08-06 16:17:12 +0530 |
| commit | 724884603c28b286e939045b0c9986fe9f4804d2 (patch) | |
| tree | e72d7a4ff1b89c0cf79691967dcdb7fb4a3d3ec5 /lib | |
| parent | b407c7e09d04d68d073a5b0ab6c02111ffcdfc71 (diff) | |
kms_content_protection: Content type support
Adds a connector property called "CP_Content_Type"
Content Type takes two values which classifies the content stream:
Type 0: Stream that can be transmitted on HDCP1.4/HDCP2.2
Type 1: Stream that needs HDCP2.2 encryption only.
So when Type 1 is set KMD is forced to enable HDCP2.2 only.
For Type 0 request, Kernel chooses the highest capable HDCP version
(v2.2) first. If that fails, then it fall back to the next available
version(v1.4) before abondoning HDCP authentication attempts.
Please note content_type is allowed to be updated when "Content
Protection" is in UNDESIRED state.
v2:
s/cp_content_type/content_protection_type [danvet]
v3:
s/content_protection_type/HDCP Content Type [Pekka]
v4:
Rebased
v5:
Typos in the commit msg is fixed [Uma]
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/315467/?series=57756&rev=10
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/igt_kms.c | 1 | ||||
| -rw-r--r-- | lib/igt_kms.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 175e71c3..b0169f73 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -413,6 +413,7 @@ const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { [IGT_CONNECTOR_BROADCAST_RGB] = "Broadcast RGB", [IGT_CONNECTOR_CONTENT_PROTECTION] = "Content Protection", [IGT_CONNECTOR_VRR_CAPABLE] = "vrr_capable", + [IGT_CONNECTOR_HDCP_CONTENT_TYPE] = "HDCP Content Type", }; /* diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 0486737b..c0dcb6f2 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -123,6 +123,7 @@ enum igt_atomic_connector_properties { IGT_CONNECTOR_BROADCAST_RGB, IGT_CONNECTOR_CONTENT_PROTECTION, IGT_CONNECTOR_VRR_CAPABLE, + IGT_CONNECTOR_HDCP_CONTENT_TYPE, IGT_NUM_CONNECTOR_PROPS }; |
