summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorAbhinav Kumar <abhinavk@codeaurora.org>2017-06-26 20:14:56 -0700
committerAbhinav Kumar <abhinavk@codeaurora.org>2017-06-27 12:42:49 -0700
commit79d9dc2c13a06427e9c38a741a1d7859986367ee (patch)
tree736206fa5d956d430887141a00af4133173d52cb /include/uapi
parentfbb8507e773545af6f3ded6198da63e06e88a328 (diff)
drm/msm: pass the HDR metadata sent from userspace to sink
Use metadata information sent from userspace to configure sink. This info shall be used later on to program the HDMI specific infoframe registers. Change-Id: I26634452d8c3ab7ab49a65e89ad52a3961c64855 Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/msm_drm.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h
index b98912f4ae47..a60e84ab905b 100644
--- a/include/uapi/drm/msm_drm.h
+++ b/include/uapi/drm/msm_drm.h
@@ -62,6 +62,27 @@ struct drm_msm_timespec {
__s64 tv_nsec; /* nanoseconds */
};
+/*
+ * HDR Metadata
+ * These are defined as per EDID spec and shall be used by the sink
+ * to set the HDR metadata for playback from userspace.
+ */
+
+#define HDR_PRIMARIES_COUNT 3
+
+struct drm_msm_ext_panel_hdr_metadata {
+ __u32 eotf; /* electro optical transfer function */
+ __u32 hdr_supported; /* HDR supported */
+ __u32 display_primaries_x[HDR_PRIMARIES_COUNT]; /* Primaries x */
+ __u32 display_primaries_y[HDR_PRIMARIES_COUNT]; /* Primaries y */
+ __u32 white_point_x; /* white_point_x */
+ __u32 white_point_y; /* white_point_y */
+ __u32 max_luminance; /* Max luminance */
+ __u32 min_luminance; /* Min Luminance */
+ __u32 max_content_light_level; /* max content light level */
+ __u32 max_average_light_level; /* max average light level */
+};
+
/**
* HDR sink properties
* These are defined as per EDID spec and shall be used by the userspace