|
@@ -135,7 +135,7 @@ static int uvc_get_video_ctrl(struct uvc_streaming *stream,
|
|
|
|
|
|
ret = __uvc_query_ctrl(stream->dev, query, 0, stream->intfnum,
|
|
|
probe ? UVC_VS_PROBE_CONTROL : UVC_VS_COMMIT_CONTROL, data,
|
|
|
- size, UVC_CTRL_STREAMING_TIMEOUT);
|
|
|
+ size, uvc_timeout_param);
|
|
|
|
|
|
if ((query == UVC_GET_MIN || query == UVC_GET_MAX) && ret == 2) {
|
|
|
/* Some cameras, mostly based on Bison Electronics chipsets,
|
|
@@ -239,7 +239,7 @@ static int uvc_set_video_ctrl(struct uvc_streaming *stream,
|
|
|
|
|
|
ret = __uvc_query_ctrl(stream->dev, UVC_SET_CUR, 0, stream->intfnum,
|
|
|
probe ? UVC_VS_PROBE_CONTROL : UVC_VS_COMMIT_CONTROL, data,
|
|
|
- size, UVC_CTRL_STREAMING_TIMEOUT);
|
|
|
+ size, uvc_timeout_param);
|
|
|
if (ret != size) {
|
|
|
uvc_printk(KERN_ERR, "Failed to set UVC %s control : "
|
|
|
"%d (exp. %u).\n", probe ? "probe" : "commit",
|