mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user