Skip to content

Commit 74e60c1

Browse files
jameshilliardgregkh
authored andcommitted
media: uvcvideo: Increase UVC_CTRL_CONTROL_TIMEOUT to 5 seconds.
[ Upstream commit c8ed7d2 ] Some uvc devices appear to require the maximum allowed USB timeout for GET_CUR/SET_CUR requests. So lets just bump the UVC control timeout to 5 seconds which is the same as the usb ctrl get/set defaults: USB_CTRL_GET_TIMEOUT 5000 USB_CTRL_SET_TIMEOUT 5000 It fixes the following runtime warnings: Failed to query (GET_CUR) UVC control 11 on unit 2: -110 (exp. 1). Failed to query (SET_CUR) UVC control 3 on unit 2: -110 (exp. 2). Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d0e3ab6 commit 74e60c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/usb/uvc/uvcvideo.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
/* Maximum status buffer size in bytes of interrupt URB. */
184184
#define UVC_MAX_STATUS_SIZE 16
185185

186-
#define UVC_CTRL_CONTROL_TIMEOUT 500
186+
#define UVC_CTRL_CONTROL_TIMEOUT 5000
187187
#define UVC_CTRL_STREAMING_TIMEOUT 5000
188188

189189
/* Maximum allowed number of control mappings per device */

0 commit comments

Comments
 (0)