aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 613300b51a9e..324b695c0724 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -760,17 +760,19 @@ buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
760 goto fail; 760 goto fail;
761 } 761 }
762 762
763 if (!dev->isoc_ctl.num_bufs) 763 if (!dev->isoc_ctl.analog_bufs.num_bufs)
764 urb_init = 1; 764 urb_init = 1;
765 765
766 if (urb_init) { 766 if (urb_init) {
767 if (em28xx_vbi_supported(dev) == 1) 767 if (em28xx_vbi_supported(dev) == 1)
768 rc = em28xx_init_isoc(dev, EM28XX_NUM_PACKETS, 768 rc = em28xx_init_isoc(dev, EM28XX_ANALOG_MODE,
769 EM28XX_NUM_PACKETS,
769 EM28XX_NUM_BUFS, 770 EM28XX_NUM_BUFS,
770 dev->max_pkt_size, 771 dev->max_pkt_size,
771 em28xx_isoc_copy_vbi); 772 em28xx_isoc_copy_vbi);
772 else 773 else
773 rc = em28xx_init_isoc(dev, EM28XX_NUM_PACKETS, 774 rc = em28xx_init_isoc(dev, EM28XX_ANALOG_MODE,
775 EM28XX_NUM_PACKETS,
774 EM28XX_NUM_BUFS, 776 EM28XX_NUM_BUFS,
775 dev->max_pkt_size, 777 dev->max_pkt_size,
776 em28xx_isoc_copy); 778 em28xx_isoc_copy);
@@ -2267,7 +2269,7 @@ static int em28xx_v4l2_close(struct file *filp)
2267 v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0); 2269 v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0);
2268 2270
2269 /* do this before setting alternate! */ 2271 /* do this before setting alternate! */
2270 em28xx_uninit_isoc(dev); 2272 em28xx_uninit_isoc(dev, EM28XX_ANALOG_MODE);
2271 em28xx_set_mode(dev, EM28XX_SUSPEND); 2273 em28xx_set_mode(dev, EM28XX_SUSPEND);
2272 2274
2273 /* set alternate 0 */ 2275 /* set alternate 0 */