From 14a57b5db42c0a9eab893bc362e83bf84e77577c Mon Sep 17 00:00:00 2001 From: Jassi Brar Date: Thu, 2 Feb 2012 22:00:48 +0530 Subject: [PATCH] --- yaml --- r: 289583 b: refs/heads/master c: 0d4e1b2a7eb7f4db8b3dc1c7ef4b507040f87ded h: refs/heads/master i: 289581: 05eb261fe42124e96be46d72d077452672cc8122 289579: ce461f31374bd567e612cabcd8da9807069e13a6 289575: f5a14927d09ff9dff4229da1f6cfc7dbb9ca98d5 289567: 0748a2de7437e753d9ea8f414980deb686f66a53 v: v3 --- [refs] | 2 +- trunk/include/linux/usb/audio-v2.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3fe0d01f2be6..497c8b608b3e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 18b5b3b55f44c28a0380f3559d1db3c467f94b4a +refs/heads/master: 0d4e1b2a7eb7f4db8b3dc1c7ef4b507040f87ded diff --git a/trunk/include/linux/usb/audio-v2.h b/trunk/include/linux/usb/audio-v2.h index 964cb603f7c7..ed13053153f4 100644 --- a/trunk/include/linux/usb/audio-v2.h +++ b/trunk/include/linux/usb/audio-v2.h @@ -43,6 +43,27 @@ static inline bool uac2_control_is_writeable(u32 bmControls, u8 control) return (bmControls >> (control * 2)) & 0x2; } +/* 4.7.2 Class-Specific AC Interface Descriptor */ +struct uac2_ac_header_descriptor { + __u8 bLength; /* 9 */ + __u8 bDescriptorType; /* USB_DT_CS_INTERFACE */ + __u8 bDescriptorSubtype; /* UAC_MS_HEADER */ + __le16 bcdADC; /* 0x0200 */ + __u8 bCategory; + __le16 wTotalLength; /* includes Unit and Terminal desc. */ + __u8 bmControls; +} __packed; + +/* 2.3.1.6 Type I Format Type Descriptor (Frmts20 final.pdf)*/ +struct uac2_format_type_i_descriptor { + __u8 bLength; /* in bytes: 6 */ + __u8 bDescriptorType; /* USB_DT_CS_INTERFACE */ + __u8 bDescriptorSubtype; /* FORMAT_TYPE */ + __u8 bFormatType; /* FORMAT_TYPE_1 */ + __u8 bSubslotSize; /* {1,2,3,4} */ + __u8 bBitResolution; +} __packed; + /* 4.7.2.1 Clock Source Descriptor */ struct uac_clock_source_descriptor {