summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Hsu <amyhsu@google.com>2022-10-17 10:53:20 +0000
committerAmy Hsu <amyhsu@google.com>2022-10-17 11:02:17 +0000
commit57e387e73e3a32f1265f47c9bdf1dea4ee217fb8 (patch)
treedf62c2581ce6f4e3a151e1b3f4dfa69e63499614
parentac8bea8da0b5b36168bc341333bc7b2e5f408ea7 (diff)
downloadlynx-57e387e73e3a32f1265f47c9bdf1dea4ee217fb8.tar.gz
panel: s6e3fc5: Correct the version contrl for max brightness (FFE).
Because the method of version control has changed, the version setting for brightness cap is wrong. According to new version control method to redefine the version for brightness cap for EVT1.0_2 and before. Bug: 239140157 Test: adb shell vndservice call Exynos.HWCService 1002 i32 0 f 1.0 Then check kernel debug log for the brightness value Change-Id: I4a06957265956c994c70256c9846072f6be58721 Signed-off-by: Amy Hsu <amyhsu@google.com>
-rw-r--r--display/panel-samsung-s6e3fc5.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/display/panel-samsung-s6e3fc5.c b/display/panel-samsung-s6e3fc5.c
index 63fb6b4..d9e32b6 100644
--- a/display/panel-samsung-s6e3fc5.c
+++ b/display/panel-samsung-s6e3fc5.c
@@ -460,7 +460,7 @@ static void s6e3fc5_update_wrctrld(struct exynos_panel *ctx)
EXYNOS_DCS_WRITE_SEQ(ctx, MIPI_DCS_WRITE_CONTROL_DISPLAY, val);
}
-#define MAX_BR_HBM_EVT1 4094
+#define MAX_BR_HBM_EVT1_0_2 4094
static int s6e3fc5_set_brightness(struct exynos_panel *ctx, u16 br)
{
u16 brightness;
@@ -474,10 +474,10 @@ static int s6e3fc5_set_brightness(struct exynos_panel *ctx, u16 br)
return 0;
}
- if (ctx->panel_rev <= PANEL_REV_EVT1 && br >= MAX_BR_HBM_EVT1) {
- br = MAX_BR_HBM_EVT1;
- dev_dbg(ctx->dev, "%s: capped to dbv(%d) for EVT1 and before\n",
- __func__, MAX_BR_HBM_EVT1);
+ if (ctx->panel_rev <= PANEL_REV_EVT1_0_2 && br >= MAX_BR_HBM_EVT1_0_2) {
+ br = MAX_BR_HBM_EVT1_0_2;
+ dev_dbg(ctx->dev, "%s: capped to dbv(%d) for EVT1_0_2 and before\n",
+ __func__, MAX_BR_HBM_EVT1_0_2);
}
brightness = (br & 0xff) << 8 | br >> 8;