aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/hackrf/hackrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/usb/hackrf/hackrf.c')
-rw-r--r--drivers/media/usb/hackrf/hackrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c
index d0c416ddd5e7..d7a3aa2029d2 100644
--- a/drivers/media/usb/hackrf/hackrf.c
+++ b/drivers/media/usb/hackrf/hackrf.c
@@ -517,7 +517,7 @@ static void hackrf_urb_complete_in(struct urb *urb)
517 urb->transfer_buffer, len); 517 urb->transfer_buffer, len);
518 vb2_set_plane_payload(&buffer->vb.vb2_buf, 0, len); 518 vb2_set_plane_payload(&buffer->vb.vb2_buf, 0, len);
519 buffer->vb.sequence = dev->sequence++; 519 buffer->vb.sequence = dev->sequence++;
520 v4l2_get_timestamp(&buffer->vb.timestamp); 520 buffer->vb.vb2_buf.timestamp = ktime_get_ns();
521 vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE); 521 vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE);
522exit_usb_submit_urb: 522exit_usb_submit_urb:
523 usb_submit_urb(urb, GFP_ATOMIC); 523 usb_submit_urb(urb, GFP_ATOMIC);
@@ -562,7 +562,7 @@ static void hackrf_urb_complete_out(struct urb *urb)
562 vb2_plane_vaddr(&buffer->vb.vb2_buf, 0), len); 562 vb2_plane_vaddr(&buffer->vb.vb2_buf, 0), len);
563 urb->actual_length = len; 563 urb->actual_length = len;
564 buffer->vb.sequence = dev->sequence++; 564 buffer->vb.sequence = dev->sequence++;
565 v4l2_get_timestamp(&buffer->vb.timestamp); 565 buffer->vb.vb2_buf.timestamp = ktime_get_ns();
566 vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE); 566 vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE);
567exit_usb_submit_urb: 567exit_usb_submit_urb:
568 usb_submit_urb(urb, GFP_ATOMIC); 568 usb_submit_urb(urb, GFP_ATOMIC);