Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e9603b3 authored by Meera Gande's avatar Meera Gande Committed by Gerrit - the friendly Code Review server
Browse files

mm-camera2:isp2: Use system time for VT



As the existing code doesn't has AV Timer,
use boottime timestamp for VT use case.

Change-Id: I082b46c27cdfde44463ac3973c1fc26587773eeb
Signed-off-by: default avatarMeera Gande <mgande@codeaurora.org>
parent e3fae817
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -4115,12 +4115,7 @@ void msm_isp_process_axi_irq_stream(struct vfe_device *vfe_dev,
		return;
	}

	if (vfe_dev->vt_enable) {
		msm_isp_get_avtimer_ts(ts);
		time_stamp = &ts->vt_time;
	} else {
	time_stamp = &ts->buf_time;
	}

	frame_id = vfe_dev->axi_data.
		src_info[SRC_TO_INTF(stream_info->stream_src)].frame_id;
+5 −9
Original line number Diff line number Diff line
@@ -207,15 +207,11 @@ void msm_isp_get_timestamp(struct msm_isp_timestamp *time_stamp,
	struct timespec ts;

	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;
	}

}

static inline u32 msm_isp_evt_mask_to_isp_event(u32 evt_mask)