Loading techpack/display/oplus/oplus_dc_diming.c +1098 −1084 Original line number Diff line number Diff line Loading @@ -1075,9 +1075,23 @@ int oplus_display_panel_set_dimlayer_enable(void *data) int oplus_display_panel_get_dimlayer_enable(void *data) { struct dsi_display *display = NULL; uint32_t *dimlayer_bl_enable = data; display = get_main_display(); if (!display) return -EINVAL; if (display->name) { if (!strcmp(display->panel->oplus_priv.vendor_name, "ANA6706")) (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable; else if (!strcmp(display->panel->name, "boe nt37800 amoled fhd+ panel with DSC")) (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable_v3; else (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable_v2; } else { (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable_v2; } return 0; } Loading Loading
techpack/display/oplus/oplus_dc_diming.c +1098 −1084 Original line number Diff line number Diff line Loading @@ -1075,9 +1075,23 @@ int oplus_display_panel_set_dimlayer_enable(void *data) int oplus_display_panel_get_dimlayer_enable(void *data) { struct dsi_display *display = NULL; uint32_t *dimlayer_bl_enable = data; display = get_main_display(); if (!display) return -EINVAL; if (display->name) { if (!strcmp(display->panel->oplus_priv.vendor_name, "ANA6706")) (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable; else if (!strcmp(display->panel->name, "boe nt37800 amoled fhd+ panel with DSC")) (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable_v3; else (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable_v2; } else { (*dimlayer_bl_enable) = oplus_dimlayer_bl_enable_v2; } return 0; } Loading