avsync: tsync: fix avsync issue when streams replayed [2/2]
authorXiaoming Sui <xiaoming.sui@amlogic.com>
Thu, 30 May 2019 11:25:35 +0000 (19:25 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 4 Jun 2019 14:54:40 +0000 (07:54 -0700)
commit1306510227873a5ed2808557be52c96b670c0428
tree1f12cc970a2d3fc9ecf5c0fb0ce94a7cff2ca267
parente8962fa77852d354e8c011eb8454c057f0a1677c
avsync: tsync: fix avsync issue when streams replayed [2/2]

PD#TV-6448

Problem:
when streams replayed, the video is blocked about 6s sometimes.

Solution:
when streams replayed,  if pcr clock enable, then recalculate the
pcr clock for system clock from the stream to sync the video and audio.

Verify:
X301

Change-Id: Ic414fdc102753e1e1dcedfef2a5cb76ddddf6383
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
drivers/amlogic/media/frame_sync/tsync_pcr.c