[v8,04/10] drm/i915: Attach HDR metadata property to connector
diff mbox series

Message ID 1554828284-17776-5-git-send-email-uma.shankar@intel.com
State New
Headers show
  • Add HDR Metadata Parsing and handling in DRM layer
Related show

Commit Message

Shankar, Uma April 9, 2019, 4:44 p.m. UTC
Attach HDR metadata property to connector object.

v2: Rebase

v3: Updated the property name as per updated name
while creating hdr metadata property

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
 drivers/gpu/drm/i915/intel_hdmi.c | 2 ++
 1 file changed, 2 insertions(+)

diff mbox series

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index e1005d7..d9851da 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -2730,6 +2730,8 @@  static void intel_hdmi_destroy(struct drm_connector *connector)
 	connector->state->picture_aspect_ratio = HDMI_PICTURE_ASPECT_NONE;
+	drm_object_attach_property(&connector->base,
+				   connector->dev->mode_config.hdr_output_metadata_property, 0);
 	if (!HAS_GMCH(dev_priv))
 		drm_connector_attach_max_bpc_property(connector, 8, 12);