]> www.infradead.org Git - users/hch/misc.git/commit
drm/bridge-connector: Sync supported_formats with computed ycbcr_420_allowed
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 24 Dec 2024 18:22:42 +0000 (20:22 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 13 Jan 2025 09:18:20 +0000 (11:18 +0200)
commit1bd1562d3522f7a846dad795359c31b371e6303b
treea8d48df31d959eaef86a5647b09bbddbbb5a09a5
parentd102ac39fbe181a6f0c9e98bc26bd94018657808
drm/bridge-connector: Sync supported_formats with computed ycbcr_420_allowed

The case of having an HDMI bridge in the pipeline which advertises
YUV420 capability via its ->supported_formats and a non-HDMI one that
didn't enable ->ycbcr_420_allowed, is incorrectly handled because
supported_formats is passed as is to the helper initializing the HDMI
connector.

Ensure HDMI_COLORSPACE_YUV420 is removed from the bitmask passed to
drmm_connector_hdmi_init() when connector's ->ycbcr_420_allowed flag
ends up not being set.

Fixes: 3ced1c687512 ("drm/display: bridge_connector: handle ycbcr_420_allowed")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241224-bridge-conn-fmt-prio-v4-2-a9ceb5671379@collabora.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/display/drm_bridge_connector.c