Improve display driver

Change-Id: I588b96a4b6885c05d328d4ef2b15a47914967d17
This commit is contained in:
eric.luo 2025-06-10 13:36:38 +08:00
parent 84bc3d7b78
commit 3f6aa2d683

View file

@ -4972,10 +4972,13 @@ extern int nt_update_backlight(void);
int send_refreshrate_cmd(struct dsi_panel *panel, int refreshrate)
{
int rc = 0;
DSI_INFO("send fps cmd, fps = %d, last_fps = %d\n", refreshrate, panel->last_refresh_rate);
mutex_lock(&panel->panel_lock);
if (panel->lhbm_state) {
goto error;
}
panel->update_init_gamma = true;
DSI_INFO("send fps cmd, fps = %d, last_fps = %d\n", refreshrate, panel->last_refresh_rate);
if (panel->last_refresh_rate == 30 && refreshrate != 30) {
rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_EXIT_30HZ);
if (rc) {