Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c73b2f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: configure intf_te vsync_in_en for sde 5.0.0" into msm-4.14

parents 62ea16cc fdd7a906
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1024,18 +1024,20 @@ static bool sde_encoder_phys_cmd_is_autorefresh_enabled(
static void sde_encoder_phys_cmd_connect_te(
		struct sde_encoder_phys *phys_enc, bool enable)
{
	if (!phys_enc || !phys_enc->hw_pp || !phys_enc->hw_intf ||
			!phys_enc->hw_pp->ops.connect_external_te)
	if (!phys_enc || !phys_enc->hw_pp || !phys_enc->hw_intf)
		return;

	SDE_EVT32(DRMID(phys_enc->parent), enable);

	if (phys_enc->has_intf_te)
	if (phys_enc->has_intf_te &&
			phys_enc->hw_intf->ops.connect_external_te)
		phys_enc->hw_intf->ops.connect_external_te(phys_enc->hw_intf,
				enable);
	else
	else if (phys_enc->hw_pp->ops.connect_external_te)
		phys_enc->hw_pp->ops.connect_external_te(phys_enc->hw_pp,
				enable);
	else
		return;

	SDE_EVT32(DRMID(phys_enc->parent), enable);
}

static int sde_encoder_phys_cmd_te_get_line_count(