Browse Source

video: driver: reset video_cc_mvs0_clk_src clock_rate

Reset video_cc_mvs0_clk_src value to resolve MMRM high video
clock projection issue.

Change-Id: Ieb937dfdc7d48e1a95a0052a32189d00eeac70cf
Signed-off-by: Chinmay Sawarkar <[email protected]>
Chinmay Sawarkar 3 years ago
parent
commit
784cc63c21
1 changed files with 8 additions and 0 deletions
  1. 8 0
      driver/variant/iris3/src/msm_vidc_iris3.c

+ 8 - 0
driver/variant/iris3/src/msm_vidc_iris3.c

@@ -618,6 +618,14 @@ static int __power_off_iris3(struct msm_vidc_core *core)
 	if (!core->power_enabled)
 		return 0;
 
+	/**
+	 * Reset video_cc_mvs0_clk_src value to resolve MMRM high video
+	 * clock projection issue.
+	 */
+	rc = __set_clocks(core, 0);
+	if (rc)
+		d_vpr_e("%s: resetting clocks failed\n", __func__);
+
 	if (__power_off_iris3_hardware(core))
 		d_vpr_e("%s: failed to power off hardware\n", __func__);