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

Commit 3b269fa9 authored by Adrian Salido-Moreno's avatar Adrian Salido-Moreno
Browse files

msm: mdss: update pipe params on first update after suspend



Whenever panel is turned off, need to ensure that pipe is reprogrammed
fully when turned back on in case the pipes are not properly unset.

Change-Id: I6242b8f90695dd713c87924eb15306767b62803e
Signed-off-by: default avatarAdrian Salido-Moreno <adrianm@codeaurora.org>
parent 3a7c8a95
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -898,11 +898,13 @@ int mdss_mdp_overlay_kickoff(struct msm_fb_data_type *mfd)
			pipe->mixer = mdss_mdp_mixer_get(tmp,
					MDSS_MDP_MIXER_MUX_DEFAULT);
		}

		/* ensure pipes are always reconfigured after power off/on */
		if (pipe->play_cnt == 0)
			pipe->params_changed++;

		if (pipe->back_buf.num_planes) {
			buf = &pipe->back_buf;
		} else if (ctl->play_cnt == 0 && pipe->front_buf.num_planes) {
			pipe->params_changed++;
			buf = &pipe->front_buf;
		} else if (!pipe->params_changed) {
			continue;
		} else if (pipe->front_buf.num_planes) {