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

Commit c3dced49 authored by Carl Vanderlip's avatar Carl Vanderlip Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Don't calculate AD with zero backlight



Don't calculate AD strength when backlight is zero to prevent updates that
would not be visible from impacting screen when first backlight request
arrives.

Change-Id: Iabf10317ef40ae7bd940d94297a62975947c5ee4
Signed-off-by: default avatarCarl Vanderlip <carlv@codeaurora.org>
parent ca711dd7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3370,6 +3370,11 @@ static void pp_ad_calc_worker(struct work_struct *work)
	bl_mfd = ad->bl_mfd;
	ctl = mfd_to_ctl(ad->mfd);

	if ((ad->cfg.mode == MDSS_AD_MODE_AUTO_STR) && (ad->last_bl == 0)) {
		mutex_unlock(&ad->lock);
		return;
	}

	if (PP_AD_STATE_RUN & ad->state) {
		/* Kick off calculation */
		ad->calc_itr--;