pInstance = vMediaSyncInsList[index];
ktime_get_ts64(&ts_monotonic);
timeus = ts_monotonic.tv_sec * 1000000LL + ts_monotonic.tv_nsec / 1000LL;
+ if (pInstance->mDemuxId < 0)
+ return timeus;
+
ret = demux_get_pcr(pInstance->mDemuxId, 0, &pcr);
if (ret != 0) {
stc = timeus;
}
}
}
- printk("get_stc_time_us stc:%lld pcr:%lld system_time:%lld\n", stc, pcr * 100 / 9, timeus);
+ pr_debug("get_stc_time_us stc:%lld pcr:%lld system_time:%lld\n", stc, pcr * 100 / 9, timeus);
return stc;
}
struct timespec64 ts_monotonic;
ktime_get_ts64(&ts_monotonic);
TimeUs = ts_monotonic.tv_sec * 1000000LL + ts_monotonic.tv_nsec / 1000LL;
- printk("get_system_time_us %lld\n", TimeUs);
+ pr_debug("get_system_time_us %lld\n", TimeUs);
return TimeUs;
}
vMediaSyncInsList[index] = pInstance;
pInstance->mSyncInsId = index;
*sSyncInsId = index;
- printk("mediasync_ins_alloc index:%d\n", index);
+ pr_info("mediasync_ins_alloc index:%d\n", index);
break;
}
}
if (diff_mediatime < 0
|| ((diff_mediatime > 0)
&& (get_llabs(diff_system_time - diff_mediatime) > MIN_UPDATETIME_THRESHOLD_US ))) {
- printk("MEDIA_SYNC_PCRMASTER update time");
+ pr_info("MEDIA_SYNC_PCRMASTER update time\n");
pInstance->mLastMediaTime = lMediaTime;
pInstance->mLastRealTime = current_systemtime;
pInstance->mLastStc = current_stc;
mediasync_priv_s *priv = (mediasync_priv_s *)file->private_data;
mediasync_ins *SyncIns = NULL;
mediasync_alloc_para parm = {0};
- mediasync_arthortime_para ArthorTime = {0};
+ mediasync_arthortime_para ArthorTime = {0};
mediasync_updatetime_para UpdateTime = {0};
mediasync_systime_para SystemTime = {0};
switch (cmd) {