Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

drm/vc4: Allow interlaced HDMI modes from FKMS. #3698

Merged
merged 1 commit into from
Jul 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion drivers/gpu/drm/vc4/vc4_firmware_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,9 @@ static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc)
break;
}

if (mode->flags & DRM_MODE_FLAG_INTERLACE)
mb.timings.flags |= TIMINGS_FLAGS_INTERLACE;

mb.timings.video_id_code = frame.avi.video_code;

if (!vc4_encoder->hdmi_monitor) {
Expand Down Expand Up @@ -1632,7 +1635,7 @@ vc4_fkms_connector_init(struct drm_device *dev, struct drm_encoder *encoder,
DRM_MODE_CONNECTOR_HDMIA);
drm_connector_helper_add(connector,
&vc4_fkms_connector_helper_funcs);
connector->interlace_allowed = 0;
connector->interlace_allowed = 1;
}

ret = drm_mode_create_tv_margin_properties(dev);
Expand Down