Skip to content

Commit b6038e8

Browse files
6by9popcornmix
authored andcommitted
drm/vc4: Pass the drm vrefresh to the firmware on mode set
More for completeness than need, but use drm_mode_vrefresh to compute the vrefresh value, and pass that down to the firmware on mode set. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
1 parent cc209c1 commit b6038e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,8 @@ static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc)
766766
mode->hdisplay, mode->hsync_start, mode->hsync_end,
767767
mode->htotal, mode->hskew, mode->vdisplay,
768768
mode->vsync_start, mode->vsync_end, mode->vtotal,
769-
mode->vscan, mode->vrefresh, mode->picture_aspect_ratio,
770-
mode->flags);
769+
mode->vscan, drm_mode_vrefresh(mode),
770+
mode->picture_aspect_ratio, mode->flags);
771771
mb.timings.display = vc4_crtc->display_number;
772772

773773
mb.timings.video_id_code = frame.avi.video_code;
@@ -783,7 +783,7 @@ static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc)
783783
mb.timings.vsync_end = mode->vsync_end;
784784
mb.timings.vtotal = mode->vtotal;
785785
mb.timings.vscan = mode->vscan;
786-
mb.timings.vrefresh = 0;
786+
mb.timings.vrefresh = drm_mode_vrefresh(mode);
787787
mb.timings.flags = 0;
788788
if (mode->flags & DRM_MODE_FLAG_PHSYNC)
789789
mb.timings.flags |= TIMINGS_FLAGS_H_SYNC_POS;

0 commit comments

Comments
 (0)