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

Commit a48988ca authored by Sree Sesha Aravind Vadrevu's avatar Sree Sesha Aravind Vadrevu
Browse files

msm: mdss: Decimation and BWC cannot be enabled together



Hardware cannot support decimation and bwc together.
The use case should be failed.

Change-Id: Ic7547340eb08d542a296aa9cfdd150e7eb0bea4b
Signed-off-by: default avatarSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
parent 155357d0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -150,6 +150,9 @@ int mdss_mdp_overlay_req_check(struct msm_fb_data_type *mfd,
			pr_err("Invalid decimation factors horz=%d vert=%d\n",
					req->horz_deci, req->vert_deci);
			return -EINVAL;
		} else if (req->flags & MDP_BWC_EN) {
			pr_err("Decimation can't be enabled with BWC\n");
			return -EINVAL;
		}
	}

@@ -266,7 +269,8 @@ static int __mdp_pipe_tune_perf(struct mdss_mdp_pipe *pipe)
		 * requirement by applying vertical decimation and reduce
		 * mdp clock requirement
		 */
		if (mdata->has_decimation && (pipe->vert_deci < MAX_DECIMATION))
		if (mdata->has_decimation && (pipe->vert_deci < MAX_DECIMATION)
			&& !pipe->bwc_mode)
			pipe->vert_deci++;
		else
			return -EPERM;