- /*v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp);
- buf->vb.v4l2_buf.sequence = seqno++;
- buf->vb.v4l2_buf.field = V4L2_FIELD_NONE;*/
- vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE);
+ buf->vb.vb2_buf.timestamp = ktime_get_ns();
+ buf->vb.sequence = seqno++;
+ buf->vb.field = V4L2_FIELD_NONE;
+ vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
+ vb2_set_plane_payload(&buf->vb.vb2_buf, 0, frame_size);