avsync: tsync: fix the avsync issue [1/3]
authorXiaoming Sui <xiaoming.sui@amlogic.com>
Sat, 29 Jun 2019 11:17:27 +0000 (19:17 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 15 Jul 2019 06:13:20 +0000 (23:13 -0700)
commit5df81882e5e10b8de08ed11ab23b02739224ce04
tree4afcff9dfeae853e1dbb40b65f6056d96632f82f
parent07e33ba84b4cd3eb0e9c29913481c3c3d89debb8
avsync: tsync: fix the avsync issue [1/3]

PD#SWPL-8590

Problem:
inprove avsync accuracy when play

Solution:
1: calc the pts and pcr diff from the stream;
2: do the hold or drop audio data;
3: reclac the timestamp when paly;

Verify:
X301

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