From 6a9b3d422cdbcfead75c25437e870469e4eefab0 Mon Sep 17 00:00:00 2001 From: Cheng Tong Date: Mon, 27 Aug 2018 14:46:05 +0800 Subject: [PATCH] tsync: delete some frequent debug info PD#172598: tsync delete some frequent debug info Change-Id: Ibcb708375842f4ef1dff5ab6333387d1f3ff3b2d Signed-off-by: Cheng Tong --- drivers/amlogic/media/frame_sync/tsync_pcr.c | 4 +++- drivers/amlogic/media/video_sink/video.c | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/frame_sync/tsync_pcr.c b/drivers/amlogic/media/frame_sync/tsync_pcr.c index 66824771e41a..60b70d60da21 100644 --- a/drivers/amlogic/media/frame_sync/tsync_pcr.c +++ b/drivers/amlogic/media/frame_sync/tsync_pcr.c @@ -589,7 +589,9 @@ static void tsync_process_discontinue(void) last_checkout_minpts = last_checkout_minpts; tsync_pcr_tsdemuxpcr_discontinue = 0; tsync_pcr_reset_flag = 1; - pr_info(" now audio &video discontinue,need replay now\n"); + if (tsync_pcr_debug&0x02) { + pr_info(" now audio &video discontinue,need replay now\n"); + } } } else if (tsdemux_pcraudio_valid_cb && tsdemux_pcraudio_valid_cb()) { if ((tsync_pcr_tsdemuxpcr_discontinue & diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 287b55ea50bf..dbce86b41f76 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -4229,7 +4229,10 @@ static inline bool vpts_expire(struct vframe_s *cur_vf, * if paused ignore discontinue */ if (!timestamp_pcrscr_enable_state()) { - pr_info("video pts discontinue, but pcrscr is disabled, return false\n"); + /*pr_info("video pts discontinue, + * but pcrscr is disabled, + * return false\n"); + */ return false; } pts =