Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357141
b: refs/heads/master
c: 454fe92
h: refs/heads/master
i:
  357139: a4522f4
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Dec 22, 2012
1 parent e2a28bf commit 1aa5c03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c647a91a2558c4031eddd013e5860ca5a41363a7
refs/heads/master: 454fe92f01f8d669669619a9b301d133eda9d173
11 changes: 9 additions & 2 deletions trunk/drivers/media/usb/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = UNSET };
module_param_array(card, int, NULL, 0444);
MODULE_PARM_DESC(card, "card type");

static unsigned int prefer_bulk;
module_param(prefer_bulk, int, 0644);
MODULE_PARM_DESC(prefer_bulk, "prefer USB bulk transfers");


/* Bitmask marking allocated devices from 0 to EM28XX_MAXBOARDS - 1 */
static unsigned long em28xx_devused;

Expand Down Expand Up @@ -3332,9 +3337,11 @@ static int em28xx_usb_probe(struct usb_interface *interface,
}

/* Select USB transfer types to use */
if (has_video && !dev->analog_ep_isoc)
if (has_video &&
(!dev->analog_ep_isoc || (prefer_bulk && dev->analog_ep_bulk)))
dev->analog_xfer_bulk = 1;
if (has_dvb && !dev->dvb_ep_isoc)
if (has_dvb &&
(!dev->dvb_ep_isoc || (prefer_bulk && dev->dvb_ep_bulk)))
dev->dvb_xfer_bulk = 1;

snprintf(dev->name, sizeof(dev->name), "em28xx #%d", nr);
Expand Down

0 comments on commit 1aa5c03

Please sign in to comment.