mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
drm/connector: Register color format property on HDMI connectors
The drmm_connector_hdmi_init function can figure out what DRM color formats are supported by a particular connector based on the supported HDMI format bitmask that's passed in. Use it to register the drm color format property. Reviewed-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Link: https://patch.msgid.link/20260609-color-format-v17-18-35739b5782cc@collabora.com Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
894fc3e3f6
commit
d84f9fd6f6
|
|
@ -636,6 +636,10 @@ int drmm_connector_hdmi_init(struct drm_device *dev,
|
|||
if (max_bpc > 8)
|
||||
drm_connector_attach_hdr_output_metadata_property(connector);
|
||||
|
||||
ret = drm_connector_attach_color_format_property(connector, supported_formats);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
connector->hdmi.funcs = hdmi_funcs;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user