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

Commit a6531dd9 authored by Benet Clark's avatar Benet Clark
Browse files

msm: mdss: Notify backlight events for AD and regular BL together



Postprocessing userspace is a client of backlight notifications from
driver. There are two notifications exposed, one for AD BL attenuation
and one for regular backlight updates. Previously, the notification
would be for one type or the other. This change makes the notifications
occur together if both notifications are needed.

Change-Id: Ia5bc520a183106e1f9a876583cb3a17435be08ed
Signed-off-by: default avatarBenet Clark <benetc@codeaurora.org>
parent 48a4b550
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1404,7 +1404,7 @@ void mdss_fb_set_backlight(struct msm_fb_data_type *mfd, u32 bkl_lvl)
		if (ad_bl_notify_needed)
			mdss_fb_bl_update_notify(mfd,
				NOTIFY_TYPE_BL_AD_ATTEN_UPDATE);
		else if (bl_notify_needed)
		if (bl_notify_needed)
			mdss_fb_bl_update_notify(mfd,
				NOTIFY_TYPE_BL_UPDATE);
	}