提交 4e8c9dd0 编写于 作者: L Laurentiu Palcu 提交者: Zheng Zengkai

drm: fix HDR static metadata type field numbering

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

According to CTA-861 specification, HDR static metadata data block allows a
sink to indicate which HDR metadata types it supports by setting the SM_0 to
SM_7 bits. Currently, only Static Metadata Type 1 is supported and this is
indicated by setting the SM_0 bit to 1.

However, the connector->hdr_sink_metadata.hdmi_type1.metadata_type is always
0, because hdr_metadata_type() in drm_edid.c checks the wrong bit.

This patch corrects the HDMI_STATIC_METADATA_TYPE1 bit position.
Signed-off-by: NLaurentiu Palcu <laurentiu.palcu@nxp.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 3ec3a7bd
...@@ -156,7 +156,7 @@ enum hdmi_content_type { ...@@ -156,7 +156,7 @@ enum hdmi_content_type {
}; };
enum hdmi_metadata_type { enum hdmi_metadata_type {
HDMI_STATIC_METADATA_TYPE1 = 1, HDMI_STATIC_METADATA_TYPE1 = 0,
}; };
enum hdmi_eotf { enum hdmi_eotf {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册