summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Huang <kenbshuang@google.com>2023-07-13 22:17:03 +0800
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-07-20 15:11:08 +0000
commit2d6d7542702314b69f1271a065cff07ac2cae48b (patch)
tree182749f38a995fd05a3db69baf573cfa652935f7
parent232d0d2bc96db89726843ea5212080aec93abf5a (diff)
downloadshusky-2d6d7542702314b69f1271a065cff07ac2cae48b.tar.gz
display: bigsurf: DBV OHS is needed for less than MP
Bug: 282812053 Test: add log and hard code to MP rev. Change-Id: I41f7f465c6d3b7ca773859a38645f082539bd733 Signed-off-by: Ken Huang <kenbshuang@google.com>
-rw-r--r--display/panel-google-bigsurf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/display/panel-google-bigsurf.c b/display/panel-google-bigsurf.c
index 40f43ca..5ed6f6a 100644
--- a/display/panel-google-bigsurf.c
+++ b/display/panel-google-bigsurf.c
@@ -662,7 +662,8 @@ static int bigsurf_set_brightness(struct exynos_panel *ctx, u16 br)
}
/* Check for passing brightness threshold */
- if ((old_brightness < LHBM_COMPENSATION_THRESHOLD) ^ (br < LHBM_COMPENSATION_THRESHOLD)) {
+ if ((ctx->panel_rev < PANEL_REV_MP) &&
+ ((old_brightness < LHBM_COMPENSATION_THRESHOLD) ^ (br < LHBM_COMPENSATION_THRESHOLD))) {
low_to_high = old_brightness < LHBM_COMPENSATION_THRESHOLD;
bigsurf_wait_for_vsync_done(ctx);
EXYNOS_DCS_WRITE_SEQ(ctx, 0xF0, 0x55, 0xAA, 0x52, 0x08, 0x08);