aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-cards.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-05-27 22:44:10 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:07:22 -0400
commite2a1b79f7dc54a6f1cc8821e0c7fd68ba7568d81 (patch)
treeae43d39b2928e068ac20dc1f54debd66cd94c3e0 /drivers/media/video/em28xx/em28xx-cards.c
parent0f9fba3129541822b1d75330406e62e838bf4fc1 (diff)
V4L/DVB (11927): em28xx: provide module option to disable USB speed check
Add an em28xx module option that allows a user to override the USB speed check. Intended for advanced users who understand the consequences of trying to use the device with a 12Mbps bus. Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index b2c26293b19..36abb352b99 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -49,6 +49,11 @@ static unsigned int disable_ir;
49module_param(disable_ir, int, 0444); 49module_param(disable_ir, int, 0444);
50MODULE_PARM_DESC(disable_ir, "disable infrared remote support"); 50MODULE_PARM_DESC(disable_ir, "disable infrared remote support");
51 51
52static unsigned int disable_usb_speed_check;
53module_param(disable_usb_speed_check, int, 0444);
54MODULE_PARM_DESC(disable_usb_speed_check,
55 "override min bandwidth requirement of 480M bps");
56
52static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = UNSET }; 57static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = UNSET };
53module_param_array(card, int, NULL, 0444); 58module_param_array(card, int, NULL, 0444);
54MODULE_PARM_DESC(card, "card type"); 59MODULE_PARM_DESC(card, "card type");
@@ -2371,7 +2376,7 @@ static int em28xx_usb_probe(struct usb_interface *interface,
2371 * video stream wouldn't likely work, since 12 Mbps is generally 2376 * video stream wouldn't likely work, since 12 Mbps is generally
2372 * not enough even for most Digital TV streams. 2377 * not enough even for most Digital TV streams.
2373 */ 2378 */
2374 if (udev->speed != USB_SPEED_HIGH) { 2379 if (udev->speed != USB_SPEED_HIGH && disable_usb_speed_check == 0) {
2375 printk(DRIVER_NAME ": Device initialization failed.\n"); 2380 printk(DRIVER_NAME ": Device initialization failed.\n");
2376 printk(DRIVER_NAME ": Device must be connected to a high-speed" 2381 printk(DRIVER_NAME ": Device must be connected to a high-speed"
2377 " USB 2.0 port.\n"); 2382 " USB 2.0 port.\n");