History

usb: audio-v2: Add uac2_effect_unit_descriptor definition

The UAC2 Effect Unit Descriptor has a slightly different definition from other similar ones like Processing Unit or Extension Unit. Define it here so that it can be used in USB-audio driver in a later patch.

Takashi Iwai committed 6 years ago

Commit 10fa9511 parent dfa9a5e1 file · +12 −0Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/usb/audio-v2.h+12−0
@@ -156,6 +156,18 @@ struct uac2_feature_unit_descriptor { · 155 unmodified lines
156156 __u8 bmaControls[0]; /* variable length */
157157 } __attribute__((packed));
158158
159+/* 4.7.2.10 Effect Unit Descriptor */
160+
161+struct uac2_effect_unit_descriptor {
162+ __u8 bLength;
163+ __u8 bDescriptorType;
164+ __u8 bDescriptorSubtype;
165+ __u8 bUnitID;
166+ __le16 wEffectType;
167+ __u8 bSourceID;
168+ __u8 bmaControls[]; /* variable length */
169+} __attribute__((packed));
170+
159171 /* 4.9.2 Class-Specific AS Interface Descriptor */
160172
161173 struct uac2_as_header_descriptor {