Ver código fonte

disp: msm: dsi: force VRR on RFI default value setting

Currently on video mode panel, when the RFI bit clock
rate is set back to the default rate, the driver is not
detecting that a VRR operation is necessary due to
unchanged porches value.

This change is forcing a VRR update on video mode panel
whenever the RFI bit clock rate is changed.

Change-Id: I16520b6ca1909f878bff1bb97472b15fe2a3d13b
Signed-off-by: Amine Najahi <[email protected]>
Amine Najahi 4 anos atrás
pai
commit
d594991e69
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9 0
      msm/dsi/dsi_display.c

+ 9 - 0
msm/dsi/dsi_display.c

@@ -7274,6 +7274,15 @@ int dsi_display_validate_mode_change(struct dsi_display *display,
 					goto error;
 				}
 
+				/**
+				 * Set VRR flag whenever there is a dynamic clock
+				 * change on video mode panel as dynamic refresh is
+				 * always required when fps compensation is enabled.
+				 */
+				if ((display->config.panel_mode == DSI_OP_VIDEO_MODE) &&
+						dyn_clk_caps->maintain_const_fps)
+					adj_mode->dsi_mode_flags |= DSI_MODE_FLAG_VRR;
+
 				adj_mode->dsi_mode_flags |=
 						DSI_MODE_FLAG_DYN_CLK;
 				SDE_EVT32(SDE_EVTLOG_FUNC_CASE2,