diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2009-05-27 22:46:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:07:22 -0400 |
commit | d6a9a430a63adac71f2d23d4eb8f4eb467fc82c2 (patch) | |
tree | 261a97ba74dfe5ec529476e86915397a4449e952 /drivers/media/video/au0828 | |
parent | e2a1b79f7dc54a6f1cc8821e0c7fd68ba7568d81 (diff) |
V4L/DVB (11928): au0828: provide module option to disable USB speed check
Add an au0828 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/au0828')
-rw-r--r-- | drivers/media/video/au0828/au0828-core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/video/au0828/au0828-core.c b/drivers/media/video/au0828/au0828-core.c index 2b3f64d7a7f1..3544a2f12f13 100644 --- a/drivers/media/video/au0828/au0828-core.c +++ b/drivers/media/video/au0828/au0828-core.c | |||
@@ -36,6 +36,11 @@ int au0828_debug; | |||
36 | module_param_named(debug, au0828_debug, int, 0644); | 36 | module_param_named(debug, au0828_debug, int, 0644); |
37 | MODULE_PARM_DESC(debug, "enable debug messages"); | 37 | MODULE_PARM_DESC(debug, "enable debug messages"); |
38 | 38 | ||
39 | static unsigned int disable_usb_speed_check; | ||
40 | module_param(disable_usb_speed_check, int, 0444); | ||
41 | MODULE_PARM_DESC(disable_usb_speed_check, | ||
42 | "override min bandwidth requirement of 480M bps"); | ||
43 | |||
39 | #define _AU0828_BULKPIPE 0x03 | 44 | #define _AU0828_BULKPIPE 0x03 |
40 | #define _BULKPIPESIZE 0xffff | 45 | #define _BULKPIPESIZE 0xffff |
41 | 46 | ||
@@ -186,7 +191,7 @@ static int au0828_usb_probe(struct usb_interface *interface, | |||
186 | * video stream wouldn't likely work, since 12 Mbps is generally | 191 | * video stream wouldn't likely work, since 12 Mbps is generally |
187 | * not enough even for most Digital TV streams. | 192 | * not enough even for most Digital TV streams. |
188 | */ | 193 | */ |
189 | if (usbdev->speed != USB_SPEED_HIGH) { | 194 | if (usbdev->speed != USB_SPEED_HIGH && disable_usb_speed_check == 0) { |
190 | printk(KERN_ERR "au0828: Device initialization failed.\n"); | 195 | printk(KERN_ERR "au0828: Device initialization failed.\n"); |
191 | printk(KERN_ERR "au0828: Device must be connected to a " | 196 | printk(KERN_ERR "au0828: Device must be connected to a " |
192 | "high-speed USB 2.0 port.\n"); | 197 | "high-speed USB 2.0 port.\n"); |