From 556bf918795e78829797b8146e453a408e326fd5 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 17 Jun 2024 18:30:44 +0800 Subject: [PATCH] fix(class/video/usb_video): fix missing bDescriptorSubType in vc header descriptor --- class/video/usb_video.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/class/video/usb_video.h b/class/video/usb_video.h index 8585da7a..5fe17685 100644 --- a/class/video/usb_video.h +++ b/class/video/usb_video.h @@ -806,6 +806,7 @@ struct video_still_probe_and_commit_controls { struct video_cs_if_vc_header_descriptor { uint8_t bLength; uint8_t bDescriptorType; + uint8_t bDescriptorSubType; uint16_t bcdVDC; uint16_t wTotalLength; uint32_t dwClockFrequency; @@ -813,7 +814,7 @@ struct video_cs_if_vc_header_descriptor { uint8_t baInterfaceNr[]; } __PACKED; -#define VIDEO_SIZEOF_VC_HEADER_DESC(n) (11 + n) +#define VIDEO_SIZEOF_VC_HEADER_DESC(n) (12 + n) struct video_cs_if_vc_input_terminal_descriptor { uint8_t bLength;