Skip to content

Commit

Permalink
sm7325: techpack: msm: samsung: properly enable/disable HBM
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Change-Id: I578cfe4e052e621fc0fc21bdfd2a651c6aa4d269
  • Loading branch information
Simon1511 authored and retrozenith committed Nov 13, 2024
1 parent c38677e commit 7e89678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion techpack/display/msm/samsung/ss_dsi_panel_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e89678

Please sign in to comment.