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

Commit 440f56ab authored by raghavendra ambadas's avatar raghavendra ambadas Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Do not update backlight with max value



Calling backlight with u64_max value in display commit will set
unset_bl_level to max value and hence BL is not set with current
value during un-blank.

Change-Id: I52549b4b00f374b8f529a7841d56eb162bdbe511
Signed-off-by: default avatarRaghavendra Ambadas <rambad@codeaurora.org>
parent d18e6bf7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5825,7 +5825,8 @@ int mdss_mdp_display_commit(struct mdss_mdp_ctl *ctl, void *arg,

	/* update backlight in commit */
	if (ctl->intf_type == MDSS_INTF_DSI && !ctl->is_video_mode &&
	    ctl->mfd && ctl->mfd->bl_extn_level > 0) {
			ctl->mfd && ctl->mfd->bl_extn_level > 0 &&
			ctl->mfd->bl_extn_level != U64_MAX) {
		if (!IS_CALIB_MODE_BL(ctl->mfd) && (!ctl->mfd->ext_bl_ctrl ||
						!ctl->mfd->bl_level)) {
			mutex_lock(&ctl->mfd->bl_lock);