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

Commit ec9d986f authored by Krishna Srinivas's avatar Krishna Srinivas
Browse files

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



Add checks to ensure that fb reset for post processing
features is done only for primary display.

Change-Id: Ied9381e7cbc22882d7d51e0470468f47fd548f32
Signed-off-by: default avatarKrishna Srinivas <krisrini@codeaurora.org>
parent d71271a8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2934,6 +2934,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;
@@ -7265,6 +7267,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);