Ver Fonte

disp: msm: sde: set different wd timer according to te source

For dual panel, if they both used sim TE, the vsync sources
were set to the same watchdog timer. That's wrong, so need to
set different watchdog timer for different panels.

Change-Id: I8a5b4c6bb86b0b640d24fbfe6517e223d313fb68
Signed-off-by: Yuan Zhao <[email protected]>
Yuan Zhao há 5 anos atrás
pai
commit
263ee4756c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      msm/sde/sde_encoder.c

+ 2 - 1
msm/sde/sde_encoder.c

@@ -1094,7 +1094,8 @@ static void _sde_encoder_update_vsync_source(struct sde_encoder_virt *sde_enc,
 			vsync_source = SDE_VSYNC_SOURCE_WD_TIMER_0 -
 					sde_enc->te_source;
 		else if (disp_info->is_te_using_watchdog_timer)
-			vsync_source = SDE_VSYNC_SOURCE_WD_TIMER_4;
+			vsync_source = SDE_VSYNC_SOURCE_WD_TIMER_4 +
+					sde_enc->te_source;
 		else
 			vsync_source = sde_enc->te_source;