From: Zhizhong Zhang Date: Fri, 27 Sep 2019 09:22:01 +0000 (+0800) Subject: Audio: Intermittently sluggish video observed on few channels [3/3] X-Git-Tag: hardkernel-4.9.236-104~594 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f42a887027c3334398214405f670aa6020b98a2c;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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) {