drm/amd/display: Use the correct TMDS function to avoid DVI issues
authorChris Park <chris.park@amd.com>
Tue, 2 Apr 2024 06:06:00 +0000 (02:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2024 20:19:34 +0000 (16:19 -0400)
[Why]
DVI is TMDS signal like HDMI but without audio. Current signal check
does not correctly reflect DVI clock programming.

[How]
Define a new signal check for TMDS that includes DVI to HDMI TMDS
programming.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Chris Park <chris.park@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c

index 6b33117ab5fc16d78f2245f7886485036f4ce963..f39700832639d1918d5bf838e34f971252aa38cd 100644 (file)
@@ -1081,7 +1081,7 @@ static bool dcn401_program_pix_clk(
        dto_params.signal = pix_clk_params->signal_type;
 
        // all but TMDS gets Driver to program DP_DTO without calling VBIOS Command table
-       if (!dc_is_hdmi_tmds_signal(pix_clk_params->signal_type)) {
+       if (!dc_is_tmds_signal(pix_clk_params->signal_type)) {
                long long ref_dtbclk_khz = clock_source->ctx->dc->clk_mgr->funcs->get_dtb_ref_clk_frequency(clock_source->ctx->dc->clk_mgr);
                long long dprefclk_khz = clock_source->ctx->dc->clk_mgr->dprefclk_khz;
                long long dtbclk_p_src_clk_khz;