aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/airspy/airspy.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 08:13:27 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 08:13:27 -0500
commitc3152592e70bbf023ec106ee9ea271e9060bc09a (patch)
tree1297d10309d56c67eee12d82f8764c9cf3e8fc22 /drivers/media/usb/airspy/airspy.c
parentafd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc (diff)
parent768acf46e1320d6c41ed1b7c4952bab41c1cde79 (diff)
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 ...
Diffstat (limited to 'drivers/media/usb/airspy/airspy.c')
-rw-r--r--drivers/media/usb/airspy/airspy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c
index 565a59310747..0d4ac5947f3a 100644
--- a/drivers/media/usb/airspy/airspy.c
+++ b/drivers/media/usb/airspy/airspy.c
@@ -316,7 +316,7 @@ static void airspy_urb_complete(struct urb *urb)
316 len = airspy_convert_stream(s, ptr, urb->transfer_buffer, 316 len = airspy_convert_stream(s, ptr, urb->transfer_buffer,
317 urb->actual_length); 317 urb->actual_length);
318 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len); 318 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len);
319 v4l2_get_timestamp(&fbuf->vb.timestamp); 319 fbuf->vb.vb2_buf.timestamp = ktime_get_ns();
320 fbuf->vb.sequence = s->sequence++; 320 fbuf->vb.sequence = s->sequence++;
321 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); 321 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
322 } 322 }
@@ -488,7 +488,7 @@ static void airspy_disconnect(struct usb_interface *intf)
488 488
489/* Videobuf2 operations */ 489/* Videobuf2 operations */
490static int airspy_queue_setup(struct vb2_queue *vq, 490static int airspy_queue_setup(struct vb2_queue *vq,
491 const void *parg, unsigned int *nbuffers, 491 unsigned int *nbuffers,
492 unsigned int *nplanes, unsigned int sizes[], void *alloc_ctxs[]) 492 unsigned int *nplanes, unsigned int sizes[], void *alloc_ctxs[])
493{ 493{
494 struct airspy *s = vb2_get_drv_priv(vq); 494 struct airspy *s = vb2_get_drv_priv(vq);