Audio: Intermittently sluggish video observed on few channels [3/3]
authorZhizhong Zhang <zhizhong.zhang@amlogic.com>
Fri, 27 Sep 2019 09:22:01 +0000 (17:22 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sun, 29 Sep 2019 09:01:46 +0000 (02:01 -0700)
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 <zhizhong.zhang@amlogic.com>
drivers/amlogic/media/frame_sync/tsync.c

index 0df46cc..124badf 100644 (file)
@@ -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) {