summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorUma Shankar <uma.shankar@intel.com>2018-01-19 14:42:00 +0200
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:30:44 +0800
commitb3c6511337c44b7e5b07f3244e4545b09e92c805 (patch)
tree04b8da58d55b2891694101511a8c25787f293dd2 /include/drm
parenta37e9acb54a646b57ed182f157009665a9bd8c8f (diff)
drm: Enable HDR infoframe support
Enable Dynamic Range and Mastering Infoframe for HDR content, which is defined in CEA 861.3 spec. The metadata will be computed based on blending policy in userspace compositors and passed as a connector property blob to driver. The same will be sent as infoframe to panel which support HDR. Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_edid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
index 267e0426c479..6f1410b113fc 100644
--- a/include/drm/drm_edid.h
+++ b/include/drm/drm_edid.h
@@ -372,6 +372,10 @@ static inline int drm_eld_mnl(const uint8_t *eld)
return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT;
}
+int
+drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame,
+ void *hdr_source_metadata);
+
/**
* drm_eld_sad - Get ELD SAD structures.
* @eld: pointer to an eld memory structure with sad_count set