msi2500.c (16217dc79dbc599b110dda26d0421df47904bba4) | msi2500.c (1bc177174b97e4df8d27b6c3cdd79ffea9e2d18e) |
---|---|
1/* 2 * Mirics MSi2500 driver 3 * Mirics MSi3101 SDR Dongle driver 4 * 5 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 495 unchanged lines hidden (view full) --- 504 ret = usb_set_interface(dev->udev, 0, 1); 505 if (ret) 506 return ret; 507 508 /* Allocate and init Isochronuous urbs */ 509 for (i = 0; i < MAX_ISO_BUFS; i++) { 510 urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL); 511 if (urb == NULL) { | 1/* 2 * Mirics MSi2500 driver 3 * Mirics MSi3101 SDR Dongle driver 4 * 5 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 495 unchanged lines hidden (view full) --- 504 ret = usb_set_interface(dev->udev, 0, 1); 505 if (ret) 506 return ret; 507 508 /* Allocate and init Isochronuous urbs */ 509 for (i = 0; i < MAX_ISO_BUFS; i++) { 510 urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL); 511 if (urb == NULL) { |
512 dev_err(dev->dev, "Failed to allocate urb %d\n", i); | |
513 msi2500_isoc_cleanup(dev); 514 return -ENOMEM; 515 } 516 dev->urbs[i] = urb; 517 dev_dbg(dev->dev, "Allocated URB at 0x%p\n", urb); 518 519 urb->interval = 1; 520 urb->dev = dev->udev; --- 372 unchanged lines hidden (view full) --- 893 } 894 895 /* sleep tuner */ 896 v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 0); 897 898 mutex_unlock(&dev->v4l2_lock); 899} 900 | 512 msi2500_isoc_cleanup(dev); 513 return -ENOMEM; 514 } 515 dev->urbs[i] = urb; 516 dev_dbg(dev->dev, "Allocated URB at 0x%p\n", urb); 517 518 urb->interval = 1; 519 urb->dev = dev->udev; --- 372 unchanged lines hidden (view full) --- 892 } 893 894 /* sleep tuner */ 895 v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 0); 896 897 mutex_unlock(&dev->v4l2_lock); 898} 899 |
901static struct vb2_ops msi2500_vb2_ops = { | 900static const struct vb2_ops msi2500_vb2_ops = { |
902 .queue_setup = msi2500_queue_setup, 903 .buf_queue = msi2500_buf_queue, 904 .start_streaming = msi2500_start_streaming, 905 .stop_streaming = msi2500_stop_streaming, 906 .wait_prepare = vb2_ops_wait_prepare, 907 .wait_finish = vb2_ops_wait_finish, 908}; 909 --- 422 unchanged lines hidden --- | 901 .queue_setup = msi2500_queue_setup, 902 .buf_queue = msi2500_buf_queue, 903 .start_streaming = msi2500_start_streaming, 904 .stop_streaming = msi2500_stop_streaming, 905 .wait_prepare = vb2_ops_wait_prepare, 906 .wait_finish = vb2_ops_wait_finish, 907}; 908 --- 422 unchanged lines hidden --- |