Skip to content

Commit 9d40cdf

Browse files
6by9popcornmix
authored andcommitted
drm/vc4: Allow interlaced HDMI modes from FKMS.
Having checked the firmware handling for interlaced modes, it appears to be possible to support interlaced modes on HDMI without adverse side effects, so do so. raspberrypi#3694 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 1f6d53c commit 9d40cdf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,9 @@ static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc)
919919
break;
920920
}
921921

922+
if (mode->flags & DRM_MODE_FLAG_INTERLACE)
923+
mb.timings.flags |= TIMINGS_FLAGS_INTERLACE;
924+
922925
mb.timings.video_id_code = frame.avi.video_code;
923926

924927
if (!vc4_encoder->hdmi_monitor) {
@@ -1615,7 +1618,7 @@ vc4_fkms_connector_init(struct drm_device *dev, struct drm_encoder *encoder,
16151618
DRM_MODE_CONNECTOR_HDMIA);
16161619
drm_connector_helper_add(connector,
16171620
&vc4_fkms_connector_helper_funcs);
1618-
connector->interlace_allowed = 0;
1621+
connector->interlace_allowed = 1;
16191622
}
16201623

16211624
ret = drm_mode_create_tv_margin_properties(dev);

0 commit comments

Comments
 (0)