PD#SWPL-906
Problem:
The video and audio did not synchronous randomly
Solution:
it seems system time increase not by vsync isr,
so change the system time get interface to make
sure system time increase by vsync isr when
amaster mode
Verify:
R311&P321 32bit&64bit version
Change-Id: Ib3a556ba097fc6f0c51fd4560ab8101c6e7f509c
Signed-off-by: live.li <live.li@amlogic.com>
u32 timestamp_pcrscr_get(void)
{
+ if (tsync_get_mode() == TSYNC_MODE_AMASTER)
+ return system_time;
+
if (tsdemux_pcrscr_valid_cb && tsdemux_pcrscr_valid_cb()) {
if (tsync_pcr_demux_pcr_used() == 0) {
return system_time;