drm/connector: hdmi: Add Infoframes generation
authorMaxime Ripard <mripard@kernel.org>
Mon, 27 May 2024 13:58:11 +0000 (15:58 +0200)
committerMaxime Ripard <mripard@kernel.org>
Tue, 28 May 2024 08:24:40 +0000 (10:24 +0200)
commitf378b77227bc4732922c57f92be89438bb1018a1
tree4100cd46cdf2200a8b9796ee7f3404f5383db075
parent4af70f19e55904147c0515ff874204a5306ac807
drm/connector: hdmi: Add Infoframes generation

Infoframes in KMS is usually handled by a bunch of low-level helpers
that require quite some boilerplate for drivers. This leads to
discrepancies with how drivers generate them, and which are actually
sent.

Now that we have everything needed to generate them in the HDMI
connector state, we can generate them in our common logic so that
drivers can simply reuse what we precomputed.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240527-kms-hdmi-connector-state-v15-22-c5af16c3aae2@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/display/drm_hdmi_state_helper.c
drivers/gpu/drm/drm_connector.c
drivers/gpu/drm/tests/drm_connector_test.c
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
include/drm/display/drm_hdmi_state_helper.h
include/drm/drm_connector.h