]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/display: hdmi: Use drm_output_color_format instead of hdmi_colorspace
authorMaxime Ripard <mripard@kernel.org>
Thu, 5 Mar 2026 09:05:06 +0000 (10:05 +0100)
committerMaxime Ripard <mripard@kernel.org>
Tue, 24 Mar 2026 12:54:35 +0000 (13:54 +0100)
commit00cf406a0abe7cdf61d899d218520f6bc0414979
treeabe59da45e08af13c88a674cf3e39ad50adf9d85
parent720c618e383c90c79b4ff3f90e71c4aceb1568d3
drm/display: hdmi: Use drm_output_color_format instead of hdmi_colorspace

The hdmi_colorspace enum was defined to represent the colorspace value
of the HDMI infoframes. It was later used by some HDMI drivers to
express the output format they should be setting up.

During the introduction of the HDMI helpers, it then was used to
represent it in the drm_connector_hdmi_state structure.

However, it's always been somewhat redundant with the DRM_COLOR_FORMAT_*
defines, and now with the drm_output_color_format enum. Let's
consolidate around drm_output_color_format in drm_connector_hdmi_state
to facilitate the current effort to provide a global output format
selection mechanism.

Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260305-drm-rework-color-formats-v3-14-f3935f6db579@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
17 files changed:
drivers/gpu/drm/bridge/inno-hdmi.c
drivers/gpu/drm/bridge/ite-it6263.c
drivers/gpu/drm/display/drm_bridge_connector.c
drivers/gpu/drm/display/drm_hdmi_helper.c
drivers/gpu/drm/display/drm_hdmi_state_helper.c
drivers/gpu/drm/drm_bridge.c
drivers/gpu/drm/drm_connector.c
drivers/gpu/drm/mediatek/mtk_hdmi_v2.c
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
drivers/gpu/drm/tests/drm_connector_test.c
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h
include/drm/bridge/dw_hdmi_qp.h
include/drm/display/drm_hdmi_helper.h
include/drm/drm_bridge.h
include/drm/drm_connector.h