sm7125: drm: msm: samsung_lego: 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 <me@simon1511.de>
Change-Id: I578cfe4e052e621fc0fc21bdfd2a651c6aa4d269
fourteen
Simon1511 2 years ago
parent d45b9ba98c
commit ebdd80eb4d
  1. 2
      drivers/gpu/drm/msm/samsung_lego/ss_dsi_panel_common.c

@ -5951,7 +5951,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;

Loading…
Cancel
Save