Skip to content

Commit cd1b7be

Browse files
popcornmixpelwell
authored andcommitted
drm/vc4: hdmi: Fix clock value used for validating hdmi modes
We are using mode->crt_clock here which is filled by drm_mode_set_crtcinfo() which is called right after .mode_valid. Use mode->clock which is valid here. Fixes: 624d93a ("drm/vc4: hdmi: Move clock calculation into its own function") Signed-off-by: Dom Cobley <popcornmix@gmail.com>
1 parent 6584a4e commit cd1b7be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/vc4/vc4_hdmi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ vc4_hdmi_encoder_compute_mode_clock(const struct drm_display_mode *mode,
14961496
unsigned int bpc,
14971497
enum vc4_hdmi_output_format fmt)
14981498
{
1499-
unsigned long long clock = mode->crtc_clock * 1000;
1499+
unsigned long long clock = mode->clock * 1000;
15001500

15011501
if (mode->flags & DRM_MODE_FLAG_DBLCLK)
15021502
clock = clock * 2;

0 commit comments

Comments
 (0)