aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-07-18 05:39:01 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-07-20 11:50:01 +0000
commit5f69e6209e09687b90343b09cc281fd1d9bc99f9 (patch)
treec4320a6af981f4780cb8ded279d185ea4d0afbef
parent8966cc0d01a29c11168e4e9d7f1703aa31ad3be6 (diff)
uvideo: increase UVIDEO_MAX_PU and UVIDEO_MAX_CT to 32
Some UVC devices (e.g. Logitech C920) expose more than 8 Processing Unit descriptors, causing "too many PU descriptors found!" errors. Increase both limits from 8 to 32 to accommodate such devices.
-rw-r--r--sys/dev/usb/video/uvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/video/uvideo.c b/sys/dev/usb/video/uvideo.c
index 9229aa34fc47..2019931ab6cf 100644
--- a/sys/dev/usb/video/uvideo.c
+++ b/sys/dev/usb/video/uvideo.c
@@ -246,12 +246,12 @@ struct uvideo_softc {
struct usb_video_header_desc_all sc_desc_vc_header;
struct usb_video_input_header_desc_all sc_desc_vs_input_header;
-#define UVIDEO_MAX_PU 8
+#define UVIDEO_MAX_PU 32
int sc_desc_vc_pu_num;
struct usb_video_vc_processing_desc *sc_desc_vc_pu_cur;
struct usb_video_vc_processing_desc *sc_desc_vc_pu[UVIDEO_MAX_PU];
-#define UVIDEO_MAX_CT 8
+#define UVIDEO_MAX_CT 32
int sc_desc_vc_ct_num;
struct usb_video_camera_terminal_desc *sc_desc_vc_ct_cur;
struct usb_video_camera_terminal_desc *sc_desc_vc_ct[UVIDEO_MAX_CT];