summaryrefslogtreecommitdiffstats
path: root/Documentation/usb/gadget-testing.txt
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2017-01-04 03:19:23 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-24 10:04:21 +0100
commite92b9d449d0490800160bfeb5ee1175a02979f47 (patch)
treee6a52e9d53ab3e42e90979aea3473f0ec3935015 /Documentation/usb/gadget-testing.txt
parentusb: dwc2: Fix sizeof in kzalloc (diff)
downloadlinux-e92b9d449d0490800160bfeb5ee1175a02979f47.tar.xz
linux-e92b9d449d0490800160bfeb5ee1175a02979f47.zip
usb: gadget: uac2: add req_number as parameter
There are only two requests for uac2, it may not be enough at high loading system which usb interrupt handler can't be serviced on time, then the data will be lost since it is isoc transfer for audio. In this patch, we introduce a parameter for the number for usb request, and the user can override it if current number for request is not enough for his/her use case. Besides, update this parameter for legacy audio gadget and documentation. Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'Documentation/usb/gadget-testing.txt')
-rw-r--r--Documentation/usb/gadget-testing.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt
index 581960574889..fb0cc4df1765 100644
--- a/Documentation/usb/gadget-testing.txt
+++ b/Documentation/usb/gadget-testing.txt
@@ -632,6 +632,8 @@ The uac2 function provides these attributes in its function directory:
p_chmask - playback channel mask
p_srate - playback sampling rate
p_ssize - playback sample size (bytes)
+ req_number - the number of pre-allocated request for both capture
+ and playback
The attributes have sane default values.