diff options
| author | Alvin Lee <[email protected]> | 2020-04-20 14:45:27 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-09 20:41:36 +0000 |
| commit | 49c70ece54b0d1c51bc31b2b0c1070777c992c26 (patch) | |
| tree | e1be66654cbba104bab93243454799d0b5eb3d57 /drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h | |
| parent | drm/amd/display: [FW Promotion] Release 0.0.57 (diff) | |
| download | kernel-49c70ece54b0d1c51bc31b2b0c1070777c992c26.tar.gz kernel-49c70ece54b0d1c51bc31b2b0c1070777c992c26.zip | |
drm/amd/display: Change input parameter for set_drr
[Why]
Change set_drr to pass in the entire dc_crtc_timing_adjust
structure instead of passing in the parameters individually.
This is to more easily pass in required parameters in the
adjust structure when it gets updated.
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alvin Lee <[email protected]>
Reviewed-by: Jun Lei <[email protected]>
Acked-by: Solomon Chiu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h')
| -rw-r--r-- | drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h b/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h index b64cd5bdc7b5..75a158a2514c 100644 --- a/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h +++ b/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h @@ -171,10 +171,15 @@ void mod_freesync_handle_v_update(struct mod_freesync *mod_freesync, unsigned long long mod_freesync_calc_nominal_field_rate( const struct dc_stream_state *stream); +unsigned long long mod_freesync_calc_field_rate_from_timing( + unsigned int vtotal, unsigned int htotal, unsigned int pix_clk); + bool mod_freesync_is_valid_range(uint32_t min_refresh_cap_in_uhz, uint32_t max_refresh_cap_in_uhz, uint32_t nominal_field_rate_in_uhz); - +unsigned int mod_freesync_calc_v_total_from_refresh( + const struct dc_stream_state *stream, + unsigned int refresh_in_uhz); #endif |
