From 7e89678c0e2a89608722656f39d9066913cd5d35 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Sat, 6 May 2023 14:00:06 +0200 Subject: [PATCH] sm7325: techpack: msm: samsung: properly enable/disable HBM * In some rare cases the backlight brightness would be reset to what HBM brightness was, locking our brightness at a high level Signed-off-by: Simon1511 Change-Id: I578cfe4e052e621fc0fc21bdfd2a651c6aa4d269 --- techpack/display/msm/samsung/ss_dsi_panel_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techpack/display/msm/samsung/ss_dsi_panel_common.c b/techpack/display/msm/samsung/ss_dsi_panel_common.c index 49c1fe255df1..3dd4d8a872cd 100644 --- a/techpack/display/msm/samsung/ss_dsi_panel_common.c +++ b/techpack/display/msm/samsung/ss_dsi_panel_common.c @@ -6510,7 +6510,7 @@ int ss_brightness_dcs(struct samsung_display_driver_data *vdd, int level, int ba vdd->br_info.common_br.finger_mask_hbm_on = true; backup_acl = vdd->br_info.acl_status; - if (vdd->finger_mask_updated) /* do not backup br.bl_level at on to on */ + if (vdd->finger_mask_updated && vdd->br_info.common_br.bl_level != vdd->br_info.common_br.finger_mask_bl_level) /* do not backup br.bl_level at on to on */ backup_bl_level = vdd->br_info.common_br.bl_level; level = vdd->br_info.common_br.finger_mask_bl_level; vdd->br_info.acl_status = 0;