tsync: do not operate tsync_mode_switch before first video toggled [1/1]
authorYingwei Long <yingwei.long@amlogic.com>
Thu, 28 Feb 2019 12:01:24 +0000 (20:01 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Mon, 4 Mar 2019 11:06:55 +0000 (19:06 +0800)
commit636c60fcba29504a04abf780b026469c2278e671
tree833ca5d510b0fa339d0159663c284bf27209638a
parentaf9cad4fbe3ce52b7b6147a8c5f949cd7c532db7
tsync: do not operate tsync_mode_switch before first video toggled [1/1]

PD#SWPL-5131

Problem:
Some stream in tunnel mode, first audio pts is large than
AV_DISCONTINUE_THREDHOLD_MAX(60s). In audio_hw it will check pcr and
apts diff, so large difference between pcr and apts will lead sync mode
from amster to vmaster(egg:SYNC-HEVC-59FPS-DDP51)

Solution:
do not operate tsync_mode_switch before first video toggled

Verify:
verify by franklin

Change-Id: Icec2de71ea8f838146444aa3ea880f76ed8e0f13
Signed-off-by: Yingwei Long <yingwei.long@amlogic.com>
drivers/amlogic/media/frame_sync/tsync.c