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

Commit faf6d181 authored by Xiaoming Zhou's avatar Xiaoming Zhou
Browse files

msm: mdss: fix display corruption on 720p panel



The MDP dma source size should match with the panel
resolution, instead of using the overlay size which
can be different from the panel size.

Change-Id: I4c9f8ea4e0d12e739646fe3d67dad299d3b3245b
Signed-off-by: default avatarXiaoming Zhou <zhoux@codeaurora.org>
parent 03ccedbc
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -907,11 +907,7 @@ static int mdp3_overlay_set(struct msm_fb_data_type *mfd,
	mdp3_session->overlay = *req;
	if (req->id == MSMFB_NEW_REQUEST) {
		if (dma->source_config.stride != stride ||
				dma->source_config.width != req->src.width ||
				dma->source_config.height != req->src.height ||
				dma->source_config.format != format) {
			dma->source_config.width = req->src.width;
			dma->source_config.height = req->src.height,
			dma->source_config.format = format;
			dma->source_config.stride = stride;
			mdp3_clk_enable(1, 0);
@@ -933,7 +929,6 @@ static int mdp3_overlay_unset(struct msm_fb_data_type *mfd, int ndx)
	struct mdp3_session_data *mdp3_session = mfd->mdp.private1;
	struct fb_info *fbi = mfd->fbi;
	struct fb_fix_screeninfo *fix;
	struct mdss_panel_info *panel_info = mfd->panel_info;
	int format;

	fix = &fbi->fix;
@@ -942,8 +937,6 @@ static int mdp3_overlay_unset(struct msm_fb_data_type *mfd, int ndx)

	if (mdp3_session->overlay.id == ndx && ndx == 1) {
		struct mdp3_dma *dma = mdp3_session->dma;
		dma->source_config.width = panel_info->xres,
		dma->source_config.height = panel_info->yres,
		dma->source_config.format = format;
		dma->source_config.stride = fix->line_length;
		mdp3_clk_enable(1, 0);