tsync_pcr: need to set firstvpts when video start. [1/1]

PD#SWPL-21624

Problem:
audio hal can't get firstvpts.

Solution:
set firstvpts when video start.

Verify:
verified on S905X3-AC214

Change-Id: I22134ae58fbc89bb0748adcfc4b07718c192f8e9
Signed-off-by: Chen Chen <chen.chen1@amlogic.com>
This commit is contained in:
chen.chen1
2020-03-11 17:28:48 +08:00
committed by Chris KIM
parent 0433ac1c70
commit b6ce15c859

View File

@@ -993,6 +993,8 @@ void tsync_pcr_avevent_locked(enum avevent_e event, u32 param)
pr_info("VIDEO_START! param=%x cur_pcr=%x\n", param,
timestamp_pcrscr_get());
}
if (!timestamp_firstvpts_get() && param)
timestamp_firstvpts_set(param);
tsync_set_av_state(0, 2);
/*tsync_pcr_inited_mode = INIT_MODE_VIDEO;*/
tsync_pcr_vstart_flag = 1;