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

Commit 6a9a399e authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj
Browse files

msm: camera_v2: Populate timecode type in vb2_v4l2_buffer



Populates timecode.type in vb2_v4l2_buffer. It will be used to pass
ub subsampling info to user space.

Change-Id: I824a36799a212f5e84a32d6ba42aea8e938ddb13
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent 98cddae6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -399,7 +399,7 @@ static int msm_vb2_put_buf(struct vb2_v4l2_buffer *vb, int session_id,

static int msm_vb2_buf_done(struct vb2_v4l2_buffer *vb, int session_id,
				unsigned int stream_id, uint32_t sequence,
				struct timeval *ts, uint32_t reserved)
				struct timeval *ts, uint32_t buf_type)
{
	unsigned long flags, rl_flags;
	struct msm_vb2_buffer *msm_vb2;
@@ -441,6 +441,7 @@ static int msm_vb2_buf_done(struct vb2_v4l2_buffer *vb, int session_id,
		/* put buf before buf done */
		if (msm_vb2->in_freeq) {
			vb2_v4l2_buf->sequence = sequence;
			vb2_v4l2_buf->timecode.type = buf_type;
			vb2_v4l2_buf->vb2_buf.timestamp =
				(ts->tv_sec * 1000000 + ts->tv_usec) * 1000;
			vb2_buffer_done(&vb2_v4l2_buf->vb2_buf,