The branch main has been updated by bapt:

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

commit 5f69e6209e09687b90343b09cc281fd1d9bc99f9
Author:     Baptiste Daroussin <[email protected]>
AuthorDate: 2026-07-18 05:39:01 +0000
Commit:     Baptiste Daroussin <[email protected]>
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];

Reply via email to