diff options
| author | sakumisu <[email protected]> | 2024-06-17 18:30:44 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-06-17 18:37:31 +0800 |
| commit | 556bf918795e78829797b8146e453a408e326fd5 (patch) | |
| tree | 110c97e828ab41da6665a172b8d43277b0cc1951 | |
| parent | 5d87a750aceaefc6cf734f763104efe2762df44c (diff) | |
fix(class/video/usb_video): fix missing bDescriptorSubType in vc header descriptor
| -rw-r--r-- | class/video/usb_video.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
