]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/connector: hdmi: Calculate TMDS character rate
authorMaxime Ripard <mripard@kernel.org>
Mon, 27 May 2024 13:58:00 +0000 (15:58 +0200)
committerMaxime Ripard <mripard@kernel.org>
Tue, 28 May 2024 08:12:26 +0000 (10:12 +0200)
commitf035f4097f1e0a35a457b72427bb0c06ca0c81c4
tree35db77a98a22b6080b608be1646af32b4e269828
parentabb6f74973e20956d42e8227dde6fb4e92502c14
drm/connector: hdmi: Calculate TMDS character rate

Most HDMI drivers have some code to calculate the TMDS character rate,
usually to adjust an internal clock to match what the mode requires.

Since the TMDS character rates mostly depends on the resolution, whether
we need to repeat pixels or not, the bpc count and the format, we can
now derive it from the HDMI connector state that stores all those infos
and remove the duplication from drivers.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240527-kms-hdmi-connector-state-v15-11-c5af16c3aae2@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/display/drm_hdmi_state_helper.c
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
include/drm/drm_connector.h