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/uvcvideo.h | |
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/uvcvideo.h')
-rw-r--r-- | drivers/media/video/uvc/uvcvideo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index dae5f57523db..fb3342ae6d7c 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h | |||
@@ -148,7 +148,7 @@ struct uvc_xu_control { | |||
148 | #define UVC_MAX_STATUS_SIZE 16 | 148 | #define UVC_MAX_STATUS_SIZE 16 |
149 | 149 | ||
150 | #define UVC_CTRL_CONTROL_TIMEOUT 300 | 150 | #define UVC_CTRL_CONTROL_TIMEOUT 300 |
151 | #define UVC_CTRL_STREAMING_TIMEOUT 1000 | 151 | #define UVC_CTRL_STREAMING_TIMEOUT 3000 |
152 | 152 | ||
153 | /* Devices quirks */ | 153 | /* Devices quirks */ |
154 | #define UVC_QUIRK_STATUS_INTERVAL 0x00000001 | 154 | #define UVC_QUIRK_STATUS_INTERVAL 0x00000001 |
@@ -538,6 +538,7 @@ struct uvc_driver { | |||
538 | 538 | ||
539 | extern unsigned int uvc_no_drop_param; | 539 | extern unsigned int uvc_no_drop_param; |
540 | extern unsigned int uvc_trace_param; | 540 | extern unsigned int uvc_trace_param; |
541 | extern unsigned int uvc_timeout_param; | ||
541 | 542 | ||
542 | #define uvc_trace(flag, msg...) \ | 543 | #define uvc_trace(flag, msg...) \ |
543 | do { \ | 544 | do { \ |