Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2026 11:51:12 +0000
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5f69e6209e09 - main - uvideo: increase UVIDEO_MAX_PU and UVIDEO_MAX_CT to 32
Message-ID:  <6a5e0bb0.3b9c0.69f5270f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=5f69e6209e09687b90343b09cc281fd1d9bc99f9

commit 5f69e6209e09687b90343b09cc281fd1d9bc99f9
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-07-18 05:39:01 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-07-20 11:50:01 +0000

    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.
---
 sys/dev/usb/video/uvideo.c | 4 ++--
 1 file 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];


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a5e0bb0.3b9c0.69f5270f>