/* Frame (281 bytes) */
static const unsigned char pkt2[281] = {
0x1c, 0x00, 0xb0, 0x98, 0xed, 0x62, 0x80, 0xfa,
0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
0x01, 0x01, 0x00, 0x04, 0x00, 0x80, 0x02, 0xfd,
0x00, 0x00, 0x00, 0x01,
0x09, 0x02, 0xfd, 0x00,
0x04, 0x01, 0x00, 0x80, 0x32,
0x09, 0x04, 0x00,
0x00, 0x00, 0x01, 0x01, 0x00, 0x00,
0x0a, 0x24,
0x01, 0x00, 0x01, 0x64, 0x00, 0x02, 0x01, 0x02,
0x0c, 0x24, 0x02, 0x01, 0x01, 0x01, 0x00, 0x02,
0x03, 0x00, 0x00, 0x00,
0x0c, 0x24, 0x02, 0x04,
0x01, 0x02, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00,
0x09, 0x24, 0x03, 0x03, 0x01, 0x03, 0x00, 0x06,
0x00,
0x09, 0x24, 0x03, 0x02, 0x01, 0x01, 0x00,
0x09, 0x00,
0x07, 0x24, 0x05, 0x09, 0x01, 0x05,
0x00,
0x0a, 0x24, 0x06, 0x06, 0x08, 0x01, 0x01,
0x02, 0x02, 0x00,
0x09, 0x24, 0x06, 0x05, 0x04,
0x01, 0x43, 0x00, 0x00,
0x09, 0x24, 0x06, 0x07,
0x04, 0x01, 0x03, 0x00, 0x00,
0x0d, 0x24, 0x04,
0x08, 0x02, 0x01, 0x07, 0x02, 0x03, 0x00, 0x00,
0x00, 0x00,
0x09, 0x04, 0x01, 0x00, 0x00, 0x01,
0x02, 0x00, 0x00,
0x09, 0x04, 0x01, 0x01, 0x01,
0x01, 0x02, 0x00, 0x00,
0x07, 0x24, 0x01, 0x01,
0x01, 0x01, 0x00,
0x0e, 0x24, 0x02, 0x01, 0x02,
0x02, 0x10, 0x02, 0x44, 0xac, 0x00, 0x80, 0xbb,
0x00,
0x09, 0x05, 0x05, 0x01, 0xc0, 0x00, 0x01,
0x00, 0x00,
0x07, 0x25, 0x01, 0x01, 0x00, 0x00,
0x00,
0x09, 0x04, 0x02, 0x00, 0x00, 0x01, 0x02,
0x00, 0x00,
0x09, 0x04, 0x02, 0x01, 0x01, 0x01,
0x02, 0x00, 0x00,
0x07, 0x24, 0x01, 0x02, 0x01,
0x01, 0x00,
0x0e, 0x24, 0x02, 0x01, 0x01, 0x02,
0x10, 0x02, 0x44, 0xac, 0x00, 0x80, 0xbb, 0x00,
0x09, 0x05, 0x86, 0x01, 0x64, 0x00, 0x01, 0x00,
0x00,
0x07, 0x25, 0x01, 0x01, 0x00, 0x00, 0x00,
0x09, 0x04, 0x03, 0x00, 0x01, 0x03, 0x00, 0x00,
0x00,
0x09, 0x21, 0x01, 0x02, 0x00, 0x01, 0x22,
0x29, 0x00,
0x07, 0x05, 0x83, 0x03, 0x08, 0x00,
0x20
};
Frame 8: 281 bytes on wire (2248 bits), 281 bytes captured (2248 bits) on interface 0 USB URB CONFIGURATION DESCRIPTOR INTERFACE DESCRIPTOR (0.0): class Audio Class-specific Audio Control Interface Descriptor: Header Descriptor Class-specific Audio Control Interface Descriptor: Input terminal descriptor Class-specific Audio Control Interface Descriptor: Input terminal descriptor Class-specific Audio Control Interface Descriptor: Output terminal descriptor Class-specific Audio Control Interface Descriptor: Output terminal descriptor Class-specific Audio Control Interface Descriptor: Selector unit descriptor Class-specific Audio Control Interface Descriptor: Feature unit descriptor Class-specific Audio Control Interface Descriptor: Feature unit descriptor Class-specific Audio Control Interface Descriptor: Feature unit descriptor Class-specific Audio Control Interface Descriptor: Mixer unit descriptor INTERFACE DESCRIPTOR (1.0): class Audio INTERFACE DESCRIPTOR (1.1): class Audio Class-specific Audio Streaming Interface Descriptor: General AS Descriptor Class-specific Audio Streaming Interface Descriptor: Format type descriptor ENDPOINT DESCRIPTOR Class-specific Audio Streaming Endpoint Descriptor INTERFACE DESCRIPTOR (2.0): class Audio INTERFACE DESCRIPTOR (2.1): class Audio Class-specific Audio Streaming Interface Descriptor: General AS Descriptor Class-specific Audio Streaming Interface Descriptor: Format type descriptor ENDPOINT DESCRIPTOR Class-specific Audio Streaming Endpoint Descriptor INTERFACE DESCRIPTOR (3.0): class HID HID DESCRIPTOR ENDPOINT DESCRIPTOR
共11个描述符,其中:
Interface Descriptor 1
Class-specific Audio Control Interface Descriptor : 10
除去1个头部描述符,余下9个控制描述符如下表
序号 | 接口子类 | ID | 输入源ID | 备注 |
---|---|---|---|---|
1 | Input terminal descriptor(0x02) | 1 | USB Streaming (0x0101) | |
2 | Input terminal descriptor(0x02) | 4 | Microphone (0x0201) | |
3 | Output terminal descriptor(0x03) | 3 | 6 | Speaker (0x0301) |
4 | Output terminal descriptor(0x03) | 2 | 9 | USB Streaming (0x0101) |
5 | Selector unit descriptor(0x05) | 9 | 5 | Selector, |
6 | Feature unit descriptor(0x06) | 6 | 8 | Feature Unit,Controls:Mute(0x01) Volume(0x02) |
7 | Feature unit descriptor(0x06) | 5 | 4 | Feature Unit,Controls:Mute, Volume, Automatic Gain(0x43) 0x00 |
8 | Feature unit descriptor(0x06) | 7 | 4 | Feature Unit, Controls:Mute, Volume(0x03) 0x00 |
9 | Mixer unit descriptor(0x04) | 8 | 1/7 | Mixer, Number Channels: 2, Channel Config: Left Front, Right Front(0x0003) |
IT(4)(MIC) ---> FU(5)(Mute,Volume) ---> FU(9)(Selector) -----------------------> OT(2)(AS) \-> FU(7)(Mute,Volume) ---> FU(8)(Mixer) ---> FU(6)(Mute,Volume) ---> OT(3)(Speaker) IT(1)(AS) --------------------------/