summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Chen <yinchiuan@google.com>2023-05-08 06:21:46 +0000
committerLeo Chen <yinchiuan@google.com>2023-05-08 06:21:46 +0000
commit2cd2d3d974a222de92c559705b6a6f794d4bb540 (patch)
treea09e50e12ff5ada355d85542b57fd0629c1502cb
parenta436612d8bfe2b574b72c1ca5e680adee0638e5c (diff)
downloaddisplay-2cd2d3d974a222de92c559705b6a6f794d4bb540.tar.gz
display: nt37290: show idle refresh rate in AOD mode
The refresh rate indicator reads the sysfs node of display state, and the state shows the actual refresh rate according to whether panel idle refresh rate is set. This change sets idle refresh rate to 10 in AOD mode so that the indicator can show correct refresh rate. Bug: 273577459 Test: cat sys/class/backlight/panel0-backlight/state while AOD Change-Id: If8fb450caf5b12913d43ae2281bdeaa04ff77394 Signed-off-by: Leo Chen <yinchiuan@google.com> (Cherry picked from commit c18b655dde3e58c7c5274fc5420753557795c3c5)
-rw-r--r--samsung/panel/panel-boe-nt37290.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/samsung/panel/panel-boe-nt37290.c b/samsung/panel/panel-boe-nt37290.c
index 8a888b2..e0f3e1a 100644
--- a/samsung/panel/panel-boe-nt37290.c
+++ b/samsung/panel/panel-boe-nt37290.c
@@ -769,8 +769,12 @@ static bool nt37290_set_self_refresh(struct exynos_panel *ctx, bool enable)
return false;
/* self refresh is not supported in lp mode since that always makes use of early exit */
- if (pmode->exynos_mode.is_lp_mode)
+ if (pmode->exynos_mode.is_lp_mode) {
+ /* set 10Hz while self refresh is active, otherwise clear it */
+ ctx->panel_idle_vrefresh = enable ? 10 : 0;
+ backlight_state_changed(ctx->bl);
return false;
+ }
/* do not change frequency when LHBM is enabled */
if (ctx->hbm.local_hbm.enabled) {