Browse Source

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 năm trước cách đây
mục cha
commit
263ee4756c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;