diff options
author | Uma Shankar <uma.shankar@intel.com> | 2017-05-31 15:40:49 +0530 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:30:42 +0800 |
commit | af2d22e048549209348986a5430acacb8520a275 (patch) | |
tree | fab44234f3b63c25251b81869f2ea8cd834e8656 /include/drm | |
parent | c42c06bf1b60a00bc783be24df0f3c3e4f616ff2 (diff) |
drm: Add HDR source metadata property
This patch adds a blob property to get HDR metadata
information from userspace. This will be send as part
of AVI Infoframe to panel.
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_connector.h | 11 | ||||
-rw-r--r-- | include/drm/drm_mode_config.h | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index e6cd11ee971f..851215f4ba3f 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -363,6 +363,13 @@ struct drm_connector_state { * upscaling, mostly used for built-in panels. */ unsigned int scaling_mode; + + /** + * @metadata_blob_ptr: + * DRM blob property for HDR metadata + */ + struct drm_property_blob *hdr_source_metadata_blob_ptr; + bool hdr_metadata_changed : 1; }; /** @@ -905,6 +912,10 @@ struct drm_connector { uint8_t num_h_tile, num_v_tile; uint8_t tile_h_loc, tile_v_loc; uint16_t tile_h_size, tile_v_size; + + /* HDR metdata */ + struct hdr_static_metadata *hdr_panel_metadata; + struct hdr_static_metadata *hdr_source_metadata; }; #define obj_to_connector(x) container_of(x, struct drm_connector, base) diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h index 1b37368416c8..0a2dfcf3a3c9 100644 --- a/include/drm/drm_mode_config.h +++ b/include/drm/drm_mode_config.h @@ -741,6 +741,12 @@ struct drm_mode_config { */ struct drm_property *suggested_y_property; + /** + * hdr_metadata_property: Connector property containing hdr metatda + * This will be provided by userspace compositors based on HDR content + */ + struct drm_property *hdr_source_metadata_property; + /* dumb ioctl parameters */ uint32_t preferred_depth, prefer_shadow; |