From 7a26ad5082ec72864ec7a641c3b68ae8e84aa33a Mon Sep 17 00:00:00 2001 From: yjun Date: Mon, 17 Jun 2024 22:00:07 +0800 Subject: [PATCH] update(class/video): add xu descriptor definition --- class/video/usb_video.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/class/video/usb_video.h b/class/video/usb_video.h index 69caa10a..ff36fece 100644 --- a/class/video/usb_video.h +++ b/class/video/usb_video.h @@ -861,6 +861,22 @@ struct video_cs_if_vc_output_terminal_descriptor { #define VIDEO_SIZEOF_VC_OUTPUT_TERMINAL_DESC 9 +struct video_cs_if_vc_extension_unit_descriptor { + uint8_t bLength; + uint8_t bDescriptorType; + uint8_t bDescriptorSubType; + uint8_t bUnitID; + uint8_t guidExtensionCode[16]; + uint8_t bNumControls; + uint8_t bNrInPins; + // uint8_t baSourceID[]; + uint8_t bControlSize; + // uint8_t bmControls[] + uint8_t iExtension; +} __PACKED; + +#define VIDEO_SIZEOF_VC_EXTENSION_UNIT_DESC(p, n) (24 + p + n) + struct video_cs_ep_vc_ep_descriptor { uint8_t bLength; uint8_t bDescriptorType;