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

Commit 227ab054 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: Allow post-processing clean-up for primary display"

parents 6da79c5e ec9d986f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2936,6 +2936,8 @@ int mdss_mdp_pp_overlay_init(struct msm_fb_data_type *mfd)
		pr_err("Invalid mfd %p mdata %p\n", mfd, mdata);
		return -EPERM;
	}
	if (mfd->index >= (MDP_BLOCK_MAX - MDP_LOGICAL_BLOCK_DISP_0))
		return 0;

	if (mdata->nad_cfgs)
		mfd->mdp.ad_calc_bl = pp_ad_calc_bl;
@@ -7275,6 +7277,13 @@ static int pp_mfd_release_all(struct msm_fb_data_type *mfd)
{
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();
	int ret = 0;
	if (!mfd || !mdata) {
		pr_err("Invalid mfd %p mdata %p\n", mfd, mdata);
		return -EPERM;
	}

	if (mfd->index >= (MDP_BLOCK_MAX - MDP_LOGICAL_BLOCK_DISP_0))
		return ret;

	if (mdata->nad_cfgs) {
		ret = pp_mfd_ad_release_all(mfd);