mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm: camera2: Add monotonic timestamp for SOF
In Camera3, SOF (start of frame) event indicates the time imager starts to expose. Its timestamp is used for frameworks to do AV sync for video recording, which needs to use kernel monotonic clock source. Hence add a new field in the event structure to pass this along. Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
This commit is contained in:
parent
27f6d8b324
commit
bacc7e77c9
2 changed files with 3 additions and 0 deletions
|
@ -386,6 +386,7 @@ void msm_isp_sof_notify(struct vfe_device *vfe_dev,
|
|||
|
||||
sof_event.frame_id = vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id;
|
||||
sof_event.timestamp = ts->event_time;
|
||||
sof_event.mono_timestamp = ts->buf_time;
|
||||
msm_isp_send_event(vfe_dev, ISP_EVENT_SOF, &sof_event);
|
||||
}
|
||||
|
||||
|
|
|
@ -334,6 +334,8 @@ struct msm_isp_event_data {
|
|||
*which use monotonic clock
|
||||
*/
|
||||
struct timeval timestamp;
|
||||
/* Monotonic timestamp since bootup */
|
||||
struct timeval mono_timestamp;
|
||||
/* if pix is a src frame_id is from camif */
|
||||
uint32_t frame_id;
|
||||
union {
|
||||
|
|
Loading…
Reference in a new issue