Prechádzať zdrojové kódy

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 5 rokov pred
rodič
commit
263ee4756c
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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;