diff options
author | Leo Chen <yinchiuan@google.com> | 2023-05-08 06:16:12 +0000 |
---|---|---|
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-05-08 15:19:30 +0000 |
commit | 3951ce7bc66a1ab4578147a8d2b5dd65892bead6 (patch) | |
tree | 372cccaa3f34d6bd0f80849576bbc9c5d6411f17 | |
parent | 2cd2d3d974a222de92c559705b6a6f794d4bb540 (diff) | |
download | display-3951ce7bc66a1ab4578147a8d2b5dd65892bead6.tar.gz |
display: s6e3hc4: 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: I5b023fd5a4f177c99bf2ea2cd36930d4b020ae19
Signed-off-by: Leo Chen <yinchiuan@google.com>
(Cherry picked from commit c18b655dde3e58c7c5274fc5420753557795c3c5)
-rw-r--r-- | samsung/panel/panel-samsung-s6e3hc4.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/samsung/panel/panel-samsung-s6e3hc4.c b/samsung/panel/panel-samsung-s6e3hc4.c index d8d5c34..760ca63 100644 --- a/samsung/panel/panel-samsung-s6e3hc4.c +++ b/samsung/panel/panel-samsung-s6e3hc4.c @@ -585,8 +585,12 @@ static bool s6e3hc4_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; + } idle_vrefresh = s6e3hc4_get_min_idle_vrefresh(ctx, pmode); |