Commit 6de367fd authored by James Hughes's avatar James Hughes Committed by Phil Elwell
Browse files

drm/vc4: Fix for margins in composite/SDTV mode (#3223)



Margins were incorrectly assumed to be setup in SDTV mode, but were
not actually done, so this make the setup non-conditional on mode.

Signed-off-by: default avatarJames Hughes <james.hughes@raspberrypi.org>
parent 13ce09db
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -1588,14 +1588,9 @@ vc4_fkms_connector_init(struct drm_device *dev, struct drm_encoder *encoder,
		connector->interlace_allowed = 0;
	}

	/* Create and attach TV margin props to this connector.
	 * Already done for SDTV outputs.
	 */
	if (fkms_connector->display_type != DRM_MODE_ENCODER_TVDAC) {
	ret = drm_mode_create_tv_margin_properties(dev);
	if (ret)
		goto fail;
	}

	drm_connector_attach_tv_margin_properties(connector);