drm/amd/display: Add HDMI capacity computations using fixed31_32
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Tue, 28 Nov 2023 17:31:24 +0000 (12:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jan 2024 15:31:30 +0000 (10:31 -0500)
[Why]
Certain HDMI modes failed at dml cap check for uncompressed video but
they can still be supported for compressed video.

[How]
Add HDMI capacity computations using fixed31_32 in dc side.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Chris Park <chris.park@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/inc/resource.h
drivers/gpu/drm/amd/display/dc/link/link_validation.h

index 3ca72c097aa15b5decf37f64cc4de5bb95f34e27..c2ee80d6f64c9a94442a39c2a44bde6a76c0c842 100644 (file)
@@ -1462,6 +1462,8 @@ bool dc_acquire_release_mpc_3dlut(
                struct dc_transfer_func **shaper);
 
 bool dc_resource_is_dsc_encoding_supported(const struct dc *dc);
+void get_audio_check(struct audio_info *aud_modes,
+       struct audio_check *aud_chk);
 
 enum dc_status dc_commit_streams(struct dc *dc,
                                 struct dc_stream_state *streams[],
index c7a00a28c3b00688db7fddb45a5c6b7873e6afba..c958ef37b78a667b1bb9bfb26827ae3e45053715 100644 (file)
@@ -573,9 +573,6 @@ void update_audio_usage(
 
 unsigned int resource_pixel_format_to_bpp(enum surface_pixel_format format);
 
-void get_audio_check(struct audio_info *aud_modes,
-       struct audio_check *aud_chk);
-
 bool get_temp_dp_link_res(struct dc_link *link,
                struct link_resource *link_res,
                struct dc_link_settings *link_settings);
index 4a954317d0daccebc10278399615db202e6f9333..595fb05946e9d13f52b5052d6167fca1ed401038 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef __LINK_VALIDATION_H__
 #define __LINK_VALIDATION_H__
 #include "link.h"
+
 enum dc_status link_validate_mode_timing(
                const struct dc_stream_state *stream,
                struct dc_link *link,