From 93f34aa427a4ad25c6625e4daa46eb30b873c61b Mon Sep 17 00:00:00 2001 From: Rui Wang Date: Wed, 21 Aug 2019 19:34:05 +0800 Subject: [PATCH] video: modify the statistics of new frame count [1/1] PD#TV-8725 Problem: STR standby, wake up, takes a long time, takes 5-6s. Solution: When the first frame is displayed, the statistics start new frame count. Verify: Verified with X301 Change-Id: Ib318455959fe9688f3c697b1d562388547002877 Signed-off-by: Rui Wang --- drivers/amlogic/media/video_sink/video.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 31cba09b6ddf..b53770fd9992 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -3926,11 +3926,15 @@ static void vsync_toggle_frame(struct vframe_s *vf, int line) } } - if ((cur_dispbuf) && (cur_dispbuf != &vf_local) && (cur_dispbuf != vf) - && (video_property_changed != 2)) { + if (cur_dispbuf != vf) { new_frame_count++; if (new_frame_count == 1) first_picture = 1; + } + + if ((cur_dispbuf) && (cur_dispbuf != &vf_local) && (cur_dispbuf != vf) + && (video_property_changed != 2)) { + #ifdef CONFIG_AMLOGIC_MEDIA_VSYNC_RDMA if (is_vsync_rdma_enable()) { #ifdef RDMA_RECYCLE_ORDERED_VFRAMES -- 2.20.1