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

Commit aeb9a38a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm: use AMC mode for video mode panel for kona family"

parents 9c34f5b7 1db52eef
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1912,6 +1912,8 @@ static int _sde_encoder_update_rsc_client(
	int rc = 0;
	int wait_refcount = 0;
	u32 qsync_mode = 0;
	struct msm_drm_private *priv;
	struct sde_kms *sde_kms;

	if (!drm_enc || !drm_enc->dev) {
		SDE_ERROR("invalid encoder arguments\n");
@@ -1939,6 +1941,13 @@ static int _sde_encoder_update_rsc_client(
		return 0;
	}

	priv = drm_enc->dev->dev_private;
	if (!priv || !priv->kms) {
		SDE_ERROR("Invalid kms\n");
		return -EINVAL;
	}

	sde_kms = to_sde_kms(priv->kms);
	/**
	 * only primary command mode panel without Qsync can request CMD state.
	 * all other panels/displays can request for VID state including
@@ -1957,6 +1966,10 @@ static int _sde_encoder_update_rsc_client(
	else if (disp_info->capabilities & MSM_DISPLAY_CAP_VID_MODE)
		rsc_state = enable ? SDE_RSC_VID_STATE : SDE_RSC_IDLE_STATE;

	if (IS_SDE_MAJOR_SAME(sde_kms->core_rev, SDE_HW_VER_620) &&
			(rsc_state == SDE_RSC_VID_STATE))
		rsc_state = SDE_RSC_CLK_STATE;

	SDE_EVT32(rsc_state, qsync_mode);

	prefill_lines = config ? mode_info.prefill_lines +