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: Krishna Srinivas <krisrini@codeaurora.org> Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
This commit is contained in:
parent
16a6dc2a06
commit
e3811794b8
1 changed files with 9 additions and 0 deletions
|
@ -3264,6 +3264,8 @@ int mdss_mdp_pp_overlay_init(struct msm_fb_data_type *mfd)
|
|||
pr_err("Invalid mfd %pK mdata %pK\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;
|
||||
|
@ -7641,6 +7643,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 %pK mdata %pK\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);
|
||||
|
|
Loading…
Add table
Reference in a new issue