Skip to content

Commit

Permalink
Revert "msm: camera: Always report real time timestamp"
Browse files Browse the repository at this point in the history
This reverts commit e4ced52.

Change-Id: Iae3427d52222130ebc2100bbc9521bc21a3f7db5
  • Loading branch information
Gary Bisson committed Aug 16, 2019
1 parent 58f06e9 commit d5df78a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4021,7 +4021,7 @@ void msm_isp_process_axi_irq_stream(struct vfe_device *vfe_dev,
msm_isp_get_avtimer_ts(ts);
time_stamp = &ts->vt_time;
} else {
time_stamp = &ts->event_time;
time_stamp = &ts->buf_time;
}

frame_id = vfe_dev->axi_data.
Expand Down
9 changes: 5 additions & 4 deletions drivers/media/platform/msm/camera_v2/isp/msm_isp_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,15 @@ void msm_isp_get_timestamp(struct msm_isp_timestamp *time_stamp,
{
struct timespec ts;

get_monotonic_boottime(&ts);
time_stamp->event_time.tv_sec = ts.tv_sec;
time_stamp->event_time.tv_usec = ts.tv_nsec / 1000;
time_stamp->buf_time = time_stamp->event_time;
do_gettimeofday(&(time_stamp->event_time));
if (vfe_dev->vt_enable) {
msm_isp_get_avtimer_ts(time_stamp);
time_stamp->buf_time.tv_sec = time_stamp->vt_time.tv_sec;
time_stamp->buf_time.tv_usec = time_stamp->vt_time.tv_usec;
} else {
get_monotonic_boottime(&ts);
time_stamp->buf_time.tv_sec = ts.tv_sec;
time_stamp->buf_time.tv_usec = ts.tv_nsec/1000;
}
}

Expand Down

0 comments on commit d5df78a

Please sign in to comment.