mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
658c6c6125
PD#SWPL-72272 Problem: some define is needed by media_modules Solution: add headers that needed Verify: s4 Change-Id: Ic5a24e6879d94c25db16a6328b98b812e94c55b5 Signed-off-by: hao.shi <hao.shi@amlogic.com>
225 lines
3.3 KiB
C
225 lines
3.3 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef TIMESTAMP_H
|
|
#define TIMESTAMP_H
|
|
|
|
#ifdef CONFIG_AMAUDIO
|
|
int resample_delta;
|
|
#endif
|
|
|
|
#ifdef CONFIG_AMLOGIC_MEDIA_FRAME_SYNC
|
|
u32 timestamp_vpts_get(void);
|
|
|
|
void timestamp_vpts_set(u32 pts);
|
|
|
|
u64 timestamp_vpts_get_u64(void);
|
|
|
|
void timestamp_vpts_set_u64(u64 pts);
|
|
|
|
u32 timestamp_avsync_counter_get(void);
|
|
|
|
void timestamp_avsync_counter_set(u32 counts);
|
|
|
|
void timestamp_vpts_inc_u64(s32 val);
|
|
|
|
void timestamp_vpts_inc(s32 val);
|
|
|
|
u32 timestamp_apts_get(void);
|
|
|
|
void timestamp_apts_set(u32 pts);
|
|
|
|
u64 timestamp_apts_get_u64(void);
|
|
|
|
void timestamp_apts_inc(s32 val);
|
|
|
|
u32 timestamp_pcrscr_get(void);
|
|
|
|
void timestamp_pcrscr_set(u32 pts);
|
|
|
|
u64 timestamp_pcrscr_get_u64(void);
|
|
|
|
void timestamp_pcrscr_inc(s32 val);
|
|
|
|
void timestamp_pcrscr_inc_scale(s32 inc, u32 base);
|
|
|
|
void timestamp_pcrscr_enable(u32 enable);
|
|
|
|
u32 timestamp_pcrscr_enable_state(void);
|
|
|
|
void timestamp_pcrscr_set_adj(s32 inc);
|
|
|
|
void timestamp_pcrscr_set_adj_pcr(s32 inc);
|
|
|
|
void timestamp_apts_enable(u32 enable);
|
|
|
|
void timestamp_apts_start(u32 enable);
|
|
|
|
u32 timestamp_apts_started(void);
|
|
|
|
void timestamp_firstvpts_set(u32 pts);
|
|
|
|
u32 timestamp_firstvpts_get(void);
|
|
|
|
void timestamp_checkin_firstvpts_set(u32 pts);
|
|
|
|
u32 timestamp_checkin_firstvpts_get(void);
|
|
|
|
void timestamp_checkin_firstapts_set(u32 pts);
|
|
|
|
u32 timestamp_checkin_firstapts_get(void);
|
|
|
|
void timestamp_firstapts_set(u32 pts);
|
|
|
|
u32 timestamp_firstapts_get(void);
|
|
|
|
u32 timestamp_tsdemux_pcr_get(void);
|
|
#else
|
|
u32 __weak timestamp_vpts_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_vpts_set(u32 pts)
|
|
{
|
|
}
|
|
|
|
u64 __weak timestamp_vpts_get_u64(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_vpts_set_u64(u64 pts)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_avsync_counter_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_avsync_counter_set(u32 counts)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_vpts_inc_u64(s32 val)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_vpts_inc(s32 val)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_apts_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_apts_set(u32 pts)
|
|
{
|
|
}
|
|
|
|
u64 __weak timestamp_apts_get_u64(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_apts_inc(s32 val)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_pcrscr_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_pcrscr_set(u32 pts)
|
|
{
|
|
}
|
|
|
|
u64 __weak timestamp_pcrscr_get_u64(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_pcrscr_inc(s32 val)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_pcrscr_inc_scale(s32 inc, u32 base)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_pcrscr_enable(u32 enable)
|
|
{
|
|
}
|
|
u32 __weak timestamp_pcrscr_enable_state(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_pcrscr_set_adj(s32 inc)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_pcrscr_set_adj_pcr(s32 inc)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_apts_enable(u32 enable)
|
|
{
|
|
}
|
|
|
|
void __weak timestamp_apts_start(u32 enable)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_apts_started(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_firstvpts_set(u32 pts)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_firstvpts_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_checkin_firstvpts_set(u32 pts)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_checkin_firstvpts_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_checkin_firstapts_set(u32 pts)
|
|
{
|
|
}
|
|
|
|
u32 __weak timestamp_checkin_firstapts_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
void __weak timestamp_firstapts_set(u32 pts);
|
|
|
|
u32 __weak timestamp_firstapts_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
u32 __weak timestamp_tsdemux_pcr_get(void)
|
|
{
|
|
return -1;
|
|
}
|
|
#endif
|
|
|
|
#endif /* TIMESTAMP_H */
|