[RFC v1 02/20] drm/hdcp: HDCP SRM blob property for connectors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Standard connector blob property is created for passing HDCP
SRM table from HDCP content player to kernel.

Signed-off-by: Ramalingam C <ramalingam.c@xxxxxxxxx>
---
 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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux