}
if (type == PTS_TYPE_AUDIO && pTable->first_checkin_pts == -1) {
pTable->first_checkin_pts = val;
+ timestamp_checkin_firstapts_set(val);
/*
*if (tsync_get_debug_pts_checkin() &&
* tsync_get_debug_apts()) {
static u32 audio_pts_started;
static u32 first_vpts;
static u32 first_checkin_vpts;
+static u32 first_checkin_apts;
static u32 first_apts;
static u32 pcrscr_lantcy = 200*90;
static u32 video_pts;
}
EXPORT_SYMBOL(timestamp_pcrscr_get);
+u32 timestamp_tsdemux_pcr_get(void)
+{
+ if (tsdemux_pcrscr_get_cb)
+ return tsdemux_pcrscr_get_cb();
+
+ return (u32)-1;
+}
+EXPORT_SYMBOL(timestamp_tsdemux_pcr_get);
+
void timestamp_pcrscr_set(u32 pts)
{
- //pr_info("timestamp_pcrscr_set system time = %x\n", pts);
+ /*pr_info("timestamp_pcrscr_set system time = %x\n", pts);*/
system_time = pts;
}
EXPORT_SYMBOL(timestamp_pcrscr_set);
}
EXPORT_SYMBOL(timestamp_checkin_firstvpts_set);
+void timestamp_checkin_firstapts_set(u32 pts)
+{
+ first_checkin_apts = pts;
+ pr_info("audio first checkin pts =%x\n", first_checkin_apts);
+}
+EXPORT_SYMBOL(timestamp_checkin_firstapts_set);
+
u32 timestamp_checkin_firstvpts_get(void)
{
return first_checkin_vpts;
}
EXPORT_SYMBOL(timestamp_checkin_firstvpts_get);
+u32 timestamp_checkin_firstapts_get(void)
+{
+ return first_checkin_apts;
+}
+EXPORT_SYMBOL(timestamp_checkin_firstapts_get);
+
void timestamp_firstapts_set(u32 pts)
{
first_apts = pts;
return size;
}
+static ssize_t show_demux_pcr(struct class *class,
+ struct class_attribute *attr, char *buf)
+{
+ return sprintf(buf, "0x%x\n", timestamp_tsdemux_pcr_get());
+}
+
static ssize_t show_apts(struct class *class,
struct class_attribute *attr, char *buf)
{
return sprintf(buf, "0x%x\n", timestamp_checkin_firstvpts_get());
}
+static ssize_t show_checkin_firstapts(struct class *class,
+ struct class_attribute *attr, char *buf)
+{
+ return sprintf(buf, "0x%x\n", timestamp_checkin_firstapts_get());
+}
+
static ssize_t show_vpause_flag(struct class *class,
struct class_attribute *attr, char *buf)
{
__ATTR(checkin_firstvpts, 0644, show_checkin_firstvpts,
NULL),
__ATTR(apts_lookup, 0644, show_apts_lookup,
- store_apts_lookup),
+ store_apts_lookup),
+ __ATTR(demux_pcr, 0644, show_demux_pcr,
+ NULL),
+ __ATTR(checkin_firstapts, 0644, show_checkin_firstapts,
+ NULL),
__ATTR_NULL
};
extern u32 timestamp_checkin_firstvpts_get(void);
+extern void timestamp_checkin_firstapts_set(u32 pts);
+
+extern u32 timestamp_checkin_firstapts_get(void);
+
extern void timestamp_firstapts_set(u32 pts);
extern u32 timestamp_firstapts_get(void);
+extern u32 timestamp_tsdemux_pcr_get(void);
+
#endif /* TIMESTAMP_H */