display: fix Local hbm restore '0' backlight level issue

sometimes,finger unlock, turn on FOD HBM first, and the
turn on the backlight, this caused the restore '0' brightness
that screen can not be turned on.

Change-Id: I450373a5b50d30e2147a0a6534bdec007a12b60f
Signed-off-by: tanhua1 <tanhua1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274898
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
tanhua1 2022-05-20 14:20:53 +08:00 • committed by tongkun1
commit 426f309830

View file

@ -882,14 +882,14 @@ int dsi_panel_set_backlight(struct dsi_panel *panel, u32 bl_lvl)
if (panel->host_config.ext_bridge_mode)
return 0;
if (dsi_panel_set_hbm_backlight(panel, &bl_lvl))
return 0;
if(panel->lhbm_config.enable) {
panel->lhbm_config.dbv_level = bl_lvl;
DSI_INFO("backlight type:%d dbv lvl:%d\n", bl->type, bl_lvl);
}
if (dsi_panel_set_hbm_backlight(panel, &bl_lvl))
return 0;
DSI_DEBUG("backlight type:%d lvl:%d\n", bl->type, bl_lvl);
switch (bl->type) {
case DSI_BACKLIGHT_WLED: