[RFC v1 02/20] drm/hdcp: HDCP SRM blob property for connectors
Ramalingam C
ramalingam.c at intel.com
Wed Jul 12 08:28:46 UTC 2017
Standard connector blob property is created for passing HDCP
SRM table from HDCP content player to kernel.
Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
drivers/gpu/drm/drm_connector.c | 5 +++++
include/drm/drm_mode_config.h | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 04f8cf8..41f83a9 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -819,6 +819,11 @@ int drm_connector_create_standard_properties(struct drm_device *dev)
return -ENOMEM;
dev->mode_config.hdcp_property = prop;
+ prop = drm_property_create(dev, DRM_MODE_PROP_BLOB, "hdcp_srm", 0);
+ if (!prop)
+ return -ENOMEM;
+ dev->mode_config.hdcp_srm_property = prop;
+
return 0;
}
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
index 0c5bb90..6b06729 100644
--- a/include/drm/drm_mode_config.h
+++ b/include/drm/drm_mode_config.h
@@ -543,6 +543,11 @@ struct drm_mode_config {
*/
struct drm_property *hdcp_property;
/**
+ * @hdcp_srm_property: Default connector property to feed in the
+ * SRM Table for HDCP revocation check.
+ */
+ struct drm_property *hdcp_srm_property;
+ /**
* @plane_type_property: Default plane property to differentiate
* CURSOR, PRIMARY and OVERLAY legacy uses of planes.
*/
--
2.7.4
More information about the dri-devel
mailing list