From 3936b2396876c233ed0ab12e4f9cd7ea32f4ea7f Mon Sep 17 00:00:00 2001 From: hui an Date: Mon, 28 Oct 2019 12:38:53 +0800 Subject: [PATCH] avsync: Clear video pts & pcr pts when ts' playback stops [1/1] PD#TV-11272 Problem: Switch to the ATV channel from DTV, the picture is stuck. Solution: Clear video pts & pcr pts. Verify: x30a4 Change-Id: Id265bfdfbd7e09d1423c9349de0596d4d742474c Signed-off-by: hui an --- drivers/amlogic/media/frame_sync/tsync_pcr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/amlogic/media/frame_sync/tsync_pcr.c b/drivers/amlogic/media/frame_sync/tsync_pcr.c index d4ad13e..9482f20 100644 --- a/drivers/amlogic/media/frame_sync/tsync_pcr.c +++ b/drivers/amlogic/media/frame_sync/tsync_pcr.c @@ -1332,6 +1332,8 @@ void tsync_pcr_stop(void) tsync_pcr_started = 0; tsync_audio_state = 0; tsync_video_state = 0; + timestamp_vpts_set(0); + timestamp_pcrscr_set(0); } EXPORT_SYMBOL(tsync_pcr_stop); -- 2.7.4