avsync: tsync: fix the avsync for ms12 [3/4]
authorXiaoming Sui <xiaoming.sui@amlogic.com>
Mon, 8 Apr 2019 12:04:51 +0000 (20:04 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 23 Apr 2019 04:08:39 +0000 (21:08 -0700)
commita3b88dbcca356c71c1d6c25a7962db3a995b1fec
tree6319a21ec52302a75c4958fb7d68b0d35630fa31
parent349448751688332d06986aed766e2d51045739ed
avsync: tsync: fix the avsync for ms12 [3/4]

PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

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