avsync: tsync: fix avsync issues when dtv play [2/2]
authorXiaoming Sui <xiaoming.sui@amlogic.com>
Sat, 21 Sep 2019 09:36:28 +0000 (17:36 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 26 Sep 2019 09:21:10 +0000 (02:21 -0700)
commit489ff08e613d42ce4fe22d9d84a57e00fc6b94bf
tree83e943830fd7e01295e9acf028e6afedfb12fec6
parent4053400a719b73303918636db521dad61290e6a8
avsync: tsync: fix avsync issues when dtv play [2/2]

PD#TV-10253

Problem:
PD#TV-10253, SWPL-12816
dtv play when pcr is invalid, avsync is lost sometimes.

Solution:
add some specific marginal checks.

Verify:
X301

Change-Id: I2115bc934cd87d8a93c77180f4f37f1d23fa23ba
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
drivers/amlogic/media/frame_sync/tsync.c
drivers/amlogic/media/frame_sync/tsync_pcr.c
include/linux/amlogic/media/frame_sync/tsync.h