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

Commit d5d93fec 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: Don't calculate AD with zero backlight"

parents 1787641f c3dced49
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--;