Class-Specific Audio Streaming Interface Descriptor
struct usb_as_cs_interface_descriptor
{
U8 bLength; /*Size of this descriptor in bytes: 7 */
U8 bDescriptorType; /*CS_INTERFACE descriptor type.*/
U8 bDescriptorSubtype; /*GENERAL_SUB_TYPE descriptor subtype.*/
U8 bTerminalLink; /*The Terminal ID of the Terminal to which
the endpoint of this interface is
connected.*/
U8 bDelay; /*Delay (d) introduced by the data path
(see Section 3.4, “Inter Channel
Synchronization”). Expressed in number
of frames.*/
U16 wFormatTag; /*The Audio Data Format that has to be
used to communicate with this interface.*/
};
bLength = 0x07;
bDescriptorType = 0x24; 说明是CS_INTERFACE;
bDescriptorSubtype = 0x01; 说明是
AS_GENERAL;
bTerminalLink: 此interface所连接的endpoint的terminalID,可以通过这个值找到Terminal;
bDelay:
wFormatTag: 数据格式
FORMAT_TYPE_UNDEFINED 0X00
FORMAT_TYPE_I 0X01
FORMAT_TYPE_II 0X02
FORMAT_TYPE_III 0X03
Format type I支持pcm, pcm8, IEE_FLOAT, ALAW, MULAW;
Format type II支持 mpeg, AC-3
Format type III 支持 IEC1937_AC-3,
IEC1937_MPEG-1_Layer1, IEC1937_MPEG-1_Layer2/3 / IEC1937_MPEG-2_NOEXT, IEC1937_MPEG-2_EXT, IEC1937_MPEG-2_Layer1_LS, IEC1937_MPEG-2_Layer2/3_LS