From 16438e7a573f875719b5b795ed36c8266fe7b0a1 Mon Sep 17 00:00:00 2001 From: "shuanglong.wang" Date: Thu, 27 Jun 2019 16:08:49 +0800 Subject: [PATCH] video: move a print info to debug control [1/1] PD#SWPL-10306 Problem: omxpts is not update print too many Solution: move a print info to debug control, the condition to check whether omxpts is not set for while is not accurate Verify: verify by mainline Change-Id: I387cc6aee718182a8ff99838e9741443236dd1f9 Signed-off-by: shuanglong.wang --- drivers/amlogic/media/video_sink/video.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 42e72ce..8c9a7ce 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -6364,7 +6364,8 @@ static irqreturn_t vsync_isr_in(int irq, void *dev_id) atomic_set(&trickmode_framedone, 1); 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 */ @@ -6377,7 +6378,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; } -- 2.7.4