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)
committerYingwei Long <yingwei.long@amlogic.com>
Mon, 4 Mar 2019 09:29:44 +0000 (17:29 +0800)
commit8aab06203d1e7b3bf4b2309f89557560229df366
tree59e10492fcf8f599fa42f046b4a256a7eb5e9d6a
parentcc621b595efbe7d443f696353f49e56b61028fc8
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