diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 3f114b772870..48fd85f9661c 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -6331,7 +6331,8 @@ static irqreturn_t vsync_isr_in(int irq, void *dev_id) unsigned long delta1 = 0; diff = system_time - omx_pts; - if (time_setomxpts > 0) { + if (time_setomxpts > 0 + && time_setomxpts_last > 0) { /* time_setomxpts record hwc setomxpts time, */ /* when check diff between pcr and omx_pts, */ /* add compensation will let omx_pts and pcr */ @@ -6344,7 +6345,8 @@ static irqreturn_t vsync_isr_in(int irq, void *dev_id) (4 * vsync_pts_inc * 1000 / 90)) { time_setomxpts = 0; time_setomxpts_last = 0; - pr_info("omxpts is not update for a while,do not need compenstate\n"); + if (debug_flag & DEBUG_FLAG_PTS_TRACE) + pr_info("omxpts is not update for a while,do not need compenstate\n"); } else { diff -= delta1 * 90 / 1000; }