From f42a887027c3334398214405f670aa6020b98a2c Mon Sep 17 00:00:00 2001 From: Zhizhong Zhang Date: Fri, 27 Sep 2019 17:22:01 +0800 Subject: [PATCH] Audio: Intermittently sluggish video observed on few channels [3/3] PD#OTT-5171 Problem: Intermittently sluggish video observed on few channels Solution: Don't change pcr when setting apts in pcrmaster mode Verify: patch build of U212 Change-Id: I393c3ea8504b95c63edfd1b5acdb89f9ee754f25 Signed-off-by: Zhizhong Zhang --- drivers/amlogic/media/frame_sync/tsync.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/amlogic/media/frame_sync/tsync.c b/drivers/amlogic/media/frame_sync/tsync.c index 0df46cc..124badf 100644 --- a/drivers/amlogic/media/frame_sync/tsync.c +++ b/drivers/amlogic/media/frame_sync/tsync.c @@ -1206,6 +1206,11 @@ int tsync_set_apts(unsigned int pts) unsigned int oldpts = timestamp_apts_get(); int oldmod = tsync_mode; + if (tsync_mode == TSYNC_MODE_PCRMASTER) { + tsync_pcr_set_apts(pts); + return 0; + } + if (tsync_abreak) tsync_abreak = 0; if (!tsync_enable) { -- 2.7.4