diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-10-09 19:55:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:37 -0500 |
commit | b232a012adfea9f535702e8296ea6b76e691f436 (patch) | |
tree | da121594b0c5e6d95d399190266e8b2582b2f22a /drivers/media/video/uvc/uvc_driver.c | |
parent | c4ed8c66d79d707d89fe732ff5b97739edf1ba62 (diff) |
V4L/DVB (13155): uvcvideo: Add a module parameter to set the streaming control timeout
The default streaming control timeout was found by Ondrej Zary to be too low
for some Logitech webcams. With kernel 2.6.22 and newer they would timeout
during initialization unles the audio function was initialized before the
video function.
Add a module parameter to set the streaming control timeout and increase the
default value from 1000ms to 3000ms to fix the above problem.
Thanks to Ondrej Zary for investigating the issue and providing an initial
patch.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvc_driver.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c index 307d3a6b7395..ab4a60102d08 100644 --- a/drivers/media/video/uvc/uvc_driver.c +++ b/drivers/media/video/uvc/uvc_driver.c | |||
@@ -46,6 +46,7 @@ | |||
46 | unsigned int uvc_no_drop_param; | 46 | unsigned int uvc_no_drop_param; |
47 | static unsigned int uvc_quirks_param; | 47 | static unsigned int uvc_quirks_param; |
48 | unsigned int uvc_trace_param; | 48 | unsigned int uvc_trace_param; |
49 | unsigned int uvc_timeout_param = UVC_CTRL_STREAMING_TIMEOUT; | ||
49 | 50 | ||
50 | /* ------------------------------------------------------------------------ | 51 | /* ------------------------------------------------------------------------ |
51 | * Video formats | 52 | * Video formats |
@@ -2195,6 +2196,8 @@ module_param_named(quirks, uvc_quirks_param, uint, S_IRUGO|S_IWUSR); | |||
2195 | MODULE_PARM_DESC(quirks, "Forced device quirks"); | 2196 | MODULE_PARM_DESC(quirks, "Forced device quirks"); |
2196 | module_param_named(trace, uvc_trace_param, uint, S_IRUGO|S_IWUSR); | 2197 | module_param_named(trace, uvc_trace_param, uint, S_IRUGO|S_IWUSR); |
2197 | MODULE_PARM_DESC(trace, "Trace level bitmask"); | 2198 | MODULE_PARM_DESC(trace, "Trace level bitmask"); |
2199 | module_param_named(timeout, uvc_timeout_param, uint, S_IRUGO|S_IWUSR); | ||
2200 | MODULE_PARM_DESC(timeout, "Streaming control requests timeout"); | ||
2198 | 2201 | ||
2199 | MODULE_AUTHOR(DRIVER_AUTHOR); | 2202 | MODULE_AUTHOR(DRIVER_AUTHOR); |
2200 | MODULE_DESCRIPTION(DRIVER_DESC); | 2203 | MODULE_DESCRIPTION(DRIVER_DESC); |