[PATCH v14 13/28] drm/connector: hdmi: Add custom hook to filter TMDS character rate
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Thu May 23 03:03:58 PDT 2024
On Tue, May 21, 2024 at 12:13:46PM +0200, Maxime Ripard wrote:
> Most of the HDMI controllers have an upper TMDS character rate limit
> they can't exceed. On "embedded"-grade display controllers, it will
> typically be lower than what high-grade monitors can provide these days,
> so drivers will filter the TMDS character rate based on the controller
> capabilities.
>
> To make that easier to handle for drivers, let's provide an optional
> hook to be implemented by drivers so they can tell the HDMI controller
> helpers if a given TMDS character rate is reachable for them or not.
>
> This will then be useful to figure out the best format and bpc count for
> a given mode.
>
> Reviewed-by: Dave Stevenson <dave.stevenson at raspberrypi.com>
> Signed-off-by: Maxime Ripard <mripard at kernel.org>
> ---
> drivers/gpu/drm/display/drm_hdmi_state_helper.c | 9 +++++++
> drivers/gpu/drm/drm_connector.c | 4 +++
> drivers/gpu/drm/tests/drm_connector_test.c | 14 ++++++++++
> drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 4 +++
> include/drm/drm_connector.h | 31 ++++++++++++++++++++++
> 5 files changed, 62 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the Linux-rockchip
mailing list