avsync-lib: avpts vpts delta from PCR [2/2]

PD#TV-105360

Problem:
a) Some DTG test stream will create vpts more than 3s
ahead of PCR to make sure video have enough time for decoding. So make
this detection in avsync lib and avoid keeping reporting vdisc to
driver.
b) add audio start callback trigger to support aligned start.
c) Some DTG test stream will create vpts close to PCR, but apts 400ms
ahead of PCR, adjust the disc threshold dynamitally to handle apts
delta from PCR. So fake disc alarm can be avoided.

Solution:
Refer to problem above

Verify:
TM2 + Llama + DTG test stream

Change-Id: I02417ce892ed78350034d269d41bc7ad522cc7b2
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2 files changed
tree: 56d7680c359a9b7de9fe1af49722f79b75f7a61f
  1. src/
  2. avsync-lib.mk
  3. Config.in
  4. Makefile
  5. VERSION
  6. version_config.sh