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

Commit 3f469c54 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Calculate buffer timestamp and update to v4l2 buffer"

parents ef790030 e3d3a6fd
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -2573,13 +2573,8 @@ static void handle_fbd(enum hal_command_response cmd, void *data)
			vb->planes[0].data_offset,
			vb->planes[0].length);

	time_usec = 0;
	dprintk(VIDC_DBG,
			"Set zero timestamp for buffer %pa, filled: %d, (hi:%u, lo:%u)\n",
			&fill_buf_done->packet_buffer1,
			fill_buf_done->filled_len1,
			fill_buf_done->timestamp_hi,
			fill_buf_done->timestamp_lo);
	time_usec = fill_buf_done->timestamp_hi;
	time_usec = (time_usec << 32) | fill_buf_done->timestamp_lo;

	vb->timestamp = (time_usec * NSEC_PER_USEC);