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

Commit dbaaf80e authored by Pawan Kumar's avatar Pawan Kumar
Browse files

msm: mdss: Fix under run on interlace clip play in landscape



Rotator src rect y co-ordinate is getting odd after de-interlace
calculation but mdss expects even.

Change-Id: I124d059c89c51126208ad1de02a9d34d87b0f553
Signed-off-by: default avatarPawan Kumar <pavaku@codeaurora.org>
parent 22ed503c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -569,11 +569,13 @@ static int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,
	if ((pipe->flags & MDP_DEINTERLACE) && !pipe->scale.enable_pxl_ext) {
		if (pipe->flags & MDP_SOURCE_ROTATED_90) {
			pipe->src.x = DIV_ROUND_UP(pipe->src.x, 2);
			pipe->src.x &= ~1;
			pipe->src.w /= 2;
			pipe->img_width /= 2;
		} else {
			pipe->src.h /= 2;
			pipe->src.y = DIV_ROUND_UP(pipe->src.y, 2);
			pipe->src.y &= ~1;
		}
	}

+1 −0
Original line number Diff line number Diff line
@@ -442,6 +442,7 @@ int mdss_mdp_rotator_setup(struct msm_fb_data_type *mfd,
		rot->flags |= MDP_DEINTERLACE;
		rot->src_rect.h /= 2;
		rot->src_rect.y = DIV_ROUND_UP(rot->src_rect.y, 2);
		rot->src_rect.y &= ~1;
	}

	rot->dst = rot->src_rect;