Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: uac2: Add ACHeader and FormatType descriptor

Add missing, but needed, ACHeader and FormatType descriptor definitions.

Signed-off-by: Yadi Brar <yadi.brar01@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Jassi Brar and committed by
Felipe Balbi
0d4e1b2a 18b5b3b5

+21
+21
include/linux/usb/audio-v2.h
··· 43 43 return (bmControls >> (control * 2)) & 0x2; 44 44 } 45 45 46 + /* 4.7.2 Class-Specific AC Interface Descriptor */ 47 + struct uac2_ac_header_descriptor { 48 + __u8 bLength; /* 9 */ 49 + __u8 bDescriptorType; /* USB_DT_CS_INTERFACE */ 50 + __u8 bDescriptorSubtype; /* UAC_MS_HEADER */ 51 + __le16 bcdADC; /* 0x0200 */ 52 + __u8 bCategory; 53 + __le16 wTotalLength; /* includes Unit and Terminal desc. */ 54 + __u8 bmControls; 55 + } __packed; 56 + 57 + /* 2.3.1.6 Type I Format Type Descriptor (Frmts20 final.pdf)*/ 58 + struct uac2_format_type_i_descriptor { 59 + __u8 bLength; /* in bytes: 6 */ 60 + __u8 bDescriptorType; /* USB_DT_CS_INTERFACE */ 61 + __u8 bDescriptorSubtype; /* FORMAT_TYPE */ 62 + __u8 bFormatType; /* FORMAT_TYPE_1 */ 63 + __u8 bSubslotSize; /* {1,2,3,4} */ 64 + __u8 bBitResolution; 65 + } __packed; 66 + 46 67 /* 4.7.2.1 Clock Source Descriptor */ 47 68 48 69 struct uac_clock_source_descriptor {