Merge branch 'patchwork' into v4l_for_linus
* patchwork: (204 commits) [media] rc: sunxi-cir: Initialize the spinlock properly [media] rtl2832: do not filter out slave TS null packets [media] rtl2832: print reg number on error case [media] rtl28xxu: return demod reg page from driver cache [media] coda: enable MPEG-2 ES decoding [media] coda: don't start streaming without queued buffers [media] coda: hook up vidioc_prepare_buf [media] coda: relax coda_jpeg_check_buffer for trailing bytes [media] coda: make to_coda_video_device static [media] s5p-mfc: remove volatile attribute from MFC register addresses [media] s5p-mfc: merge together s5p_mfc_hw_call and s5p_mfc_hw_call_void [media] s5p-mfc: use spinlock to protect MFC context [media] s5p-mfc: remove unnecessary callbacks [media] s5p-mfc: make queue cleanup code common [media] s5p-mfc: use one implementation of s5p_mfc_get_new_ctx [media] s5p-mfc: constify s5p_mfc_codec_ops structures [media] au8522: Avoid memory leak for device config data [media] ir-lirc-codec.c: don't leak lirc->drv-rbuf [media] uvcvideo: small cleanup in uvc_video_clock_update() [media] uvcvideo: Fix reading the current exposure value of UVC ...
This commit is contained in:
@@ -526,7 +526,7 @@ static void hackrf_urb_complete_in(struct urb *urb)
|
||||
urb->transfer_buffer, len);
|
||||
vb2_set_plane_payload(&buffer->vb.vb2_buf, 0, len);
|
||||
buffer->vb.sequence = dev->sequence++;
|
||||
v4l2_get_timestamp(&buffer->vb.timestamp);
|
||||
buffer->vb.vb2_buf.timestamp = ktime_get_ns();
|
||||
vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
||||
exit_usb_submit_urb:
|
||||
usb_submit_urb(urb, GFP_ATOMIC);
|
||||
@@ -571,7 +571,7 @@ static void hackrf_urb_complete_out(struct urb *urb)
|
||||
vb2_plane_vaddr(&buffer->vb.vb2_buf, 0), len);
|
||||
urb->actual_length = len;
|
||||
buffer->vb.sequence = dev->sequence++;
|
||||
v4l2_get_timestamp(&buffer->vb.timestamp);
|
||||
buffer->vb.vb2_buf.timestamp = ktime_get_ns();
|
||||
vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
||||
exit_usb_submit_urb:
|
||||
usb_submit_urb(urb, GFP_ATOMIC);
|
||||
@@ -759,7 +759,7 @@ static void hackrf_return_all_buffers(struct vb2_queue *vq,
|
||||
}
|
||||
|
||||
static int hackrf_queue_setup(struct vb2_queue *vq,
|
||||
const void *parg, unsigned int *nbuffers,
|
||||
unsigned int *nbuffers,
|
||||
unsigned int *nplanes, unsigned int sizes[], void *alloc_ctxs[])
|
||||
{
|
||||
struct hackrf_dev *dev = vb2_get_drv_priv(vq);
|
||||
|
Reference in New Issue
Block a user