drm: msm: Skip fod_hbm while HBM is active

Change-Id: I84409400b4ba33370a32e8e9cbe87b3ad9dfb83c
This commit is contained in:
Arian
2020-08-26 16:01:36 +02:00
committed by kondors1995
parent 3ed9e69488
commit f370823bbd

View File

@@ -707,6 +707,9 @@ static u32 interpolate(uint32_t x, uint32_t xa, uint32_t xb, uint32_t ya, uint32
u32 dsi_panel_get_fod_dim_alpha(struct dsi_panel *panel)
{
if (panel->hbm_mode)
return 0;
u32 brightness = dsi_panel_get_backlight(panel);
int i;
@@ -776,6 +779,9 @@ int dsi_panel_set_fod_hbm(struct dsi_panel *panel, bool status)
{
int rc = 0;
if (panel->hbm_mode)
return rc;
if (status) {
#ifdef CONFIG_EXPOSURE_ADJUSTMENT
if (ea_panel_is_enabled()) {