mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
e658b2131e7943e4fffd7d413b65b11b23c77686
If we put other gadget function before UVC, for example UAC and UVC, the
ep1in will be assigned to UAC and ep2in/ep3in will be assigned to UVC.
Under these circumstances, if we open UVC before UAC, ep1in tx fifo will
not be resized and get wrong base address which leading to UVC and UAC
can not be opened at the same time.
This patch make all epin tx fifos resized whether it is enabled or not.
For RV1126/RV1109, total size of tx fifos is 0x51e(1310) and number of
epin is 7 (Include ep0in). We can configured as UAC + RNDIS + UVC + ADB,
followed by details of functions.
| function | epin | xfer | mult |maxpacket(B)| fifo(* 8B)|
--------------------------------------------------------
| CTRL | 0 | ctl | 1 | 64 | 10 |
| UAC | 1 | isoc | 2 | 200 | 53 |
| RNDIS | 2 | int | 1 | 8 | 3 |
| RNDIS | 3 | bulk | 3 | 512 | 196 |
| UVC | 4 | int | 1 | 16 | 4 |
| UVC | 5 | isoc | 6 | 1024 | 775 |
| ADB | 6 | bulk | 3 | 512 | 196 |
| total | - | - | - | - | 1237 |
Attention, the max_packetsize of UAC can be increased to 1024 to support
multi-channel or high sampling depth. If we need all these four
functions, we can set max_packetsize of UAC to (((1310 - 1237 + 53 ) * 8
- 8) / 2 - 8 = 492 Bytes at most, which can support 48K 16bits 5-channel
audio source.
Fixes: d4037f52e2 ("usb: dwc3: gadget: fix fifo number for txfifo resize")
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: Ib2d3854bd305289c30ea85c447eca49af28b62fd
…
…
…
…
…
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%