Skip to content

Commit 801c438

Browse files
committed
usb: host: class: use common usb uvc header for host uvc class
1. Use common usb_uvc.h header for usbh_uvc.c 2. Delete common definitions from usbh_uvc.h 3. Clean up and optimize usbh_uvc.c 4. Add necessary symbols for usb host uvc class. Signed-off-by: Aiden Hu <[email protected]>
1 parent 311b283 commit 801c438

File tree

3 files changed

+391
-1049
lines changed

3 files changed

+391
-1049
lines changed

subsys/usb/host/class/Kconfig.uvc_host

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,35 @@ config USBH_VIDEO_NUM_BUFS
2323
The default is a compromise to allow enough concurrent buffers
2424
but not too much memory usage.
2525

26+
config USBH_VIDEO_MAX_FRMIVAL
27+
int "Max number of video input stream per USB Video interface"
28+
range 1 255
29+
default 8
30+
help
31+
Max number of Frame Interval listed on a frame descriptor. The
32+
default value is selected arbitrarily to fit most situations without
33+
requiring too much RAM.
34+
35+
config USBH_VIDEO_MAX_STREAM_INTERFACE
36+
int "Max number of USB Video stream interface"
37+
range 1 255
38+
default 32
39+
help
40+
Max number of Video stream interface listed on descriptors. The default
41+
value is selected arbitrarily to fit most situations without requiring
42+
too much RAM.
43+
44+
config USBH_VIDEO_MAX_FORMATS
45+
int "Max number of format descriptors"
46+
range 1 254
47+
default 8
48+
help
49+
The table of format descriptors are generated at runtime. This options plans the
50+
storage at build time to allow enough descriptors to be generated. The default value
51+
aims a compromise between enough descriptors for most devices, but not too much memory
52+
being used. TThe maximum count for each format type (e.g., MJPEG, uncompressed), not the
53+
total number of all formats.
54+
2655
module = USBH_VIDEO
2756
module-str = usbh uvc
2857
default-count = 1

0 commit comments

Comments
 (0)