lkml.org 
[lkml]   [2017]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] usb: gadget: uvc:change the UVC_NUM_REQUESTS value
Date
The value is 4, it can cache four descriptors. When streaming_interval = 1,
it can tolerate 500us. Some busy scenes, it may be more than 500us because
cpu scheduling is not timely. There will have some problems. It is better
set to eight.

Signed-off-by: Pengcheng Li <lpc.li@hisilicon.com>
---
drivers/usb/gadget/function/uvc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/function/uvc.h b/drivers/usb/gadget/function/uvc.h
index a64e07e..901487e 100644
--- a/drivers/usb/gadget/function/uvc.h
+++ b/drivers/usb/gadget/function/uvc.h
@@ -90,7 +90,7 @@ extern unsigned int uvc_gadget_trace_param;
* Driver specific constants
*/

-#define UVC_NUM_REQUESTS 4
+#define UVC_NUM_REQUESTS 8
#define UVC_MAX_REQUEST_SIZE 64
#define UVC_MAX_EVENTS 4

--
2.7.4

\
 
 \ /
  Last update: 2017-12-26 03:56    [W:0.063 / U:1.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site