UAC设备改变采样率

大彬 2023-01-11 14:15:08 编辑


请教一下大家,我现在用USB声卡采集声音。图片中是输入接口的描述符,里面的端口没有采样率选项。我试着改变时钟的频率,发现在有的bAlternateSetting中能用,有的却不能用,不知道是哪的问题。如何正确的设置采样率?

USB中文网 2023-01-13 09:36:03 编辑

UAC设备的采样率是由UAC音频流接口描述符的 Audio Streaming Format Type Descripto来指定所支持的采样率的。其具体可详见https://www.usbzh.com/article/detail-184.html
而采样率的设置是由选择接口之后,是通过UAC的特点类请求(端点)来设置的,数据为3字节的采样率,详见:https://www.usbzh.com/article/detail-182.html

大彬 2023-01-13 10:42:53 编辑

谢谢你的回答!
我的这个声卡好像在端点里不能设置采样率,描述符里没有设置采样率的选项。应该可以在时钟单元里设置采样率,就是21 开头的命令。
声卡的厂家不是很专业,他只做硬件,和USB的描述符对不上,有的描述符是6通道,采集回来却是8通道的数据。
硬件上ADC的最大24bits的采样,USB描述符上却有32bits的选项。
外围的ADC芯片最大只有96k的采样率,更改192k的采样率后,有的bAlternateSetting采集到的数据听不了。有的bAlternateSetting采集到的数据用44100采样率去导入,音频听起来正常。
不过在windows下用Audicity设置192k采样率32bits采样,得到的音频数据听起来是正常的。Audicity对数据进行处理了吗?
刚开始接触,好多问题,请多指教。

USB中文网 2023-01-17 09:24:38 编辑

无论是否有几种采样率,打开时都会有个设置采样率的命令的。
AudioCity一般采到的是PCM数据。
你可以把你的设备信息通过USBTreeViewer这个工具导出,贴出来分析一下。

大彬 2023-01-18 11:03:48 编辑

下面是在linux下用lsusb命令导出的设备信息
809行 -1305行,是我要用到的接口描述符(录音),bAlternateSetting范围 0-9,里面没有采样率配置的选项。
我认为需要配置连接的时钟,才能改变采样率

  1. Bus 003 Device 007: ID 2fc6:6013 LIS Tech LIS_MIIS_8X8_192K
  2. Device Descriptor:
  3. bLength 18
  4. bDescriptorType 1
  5. bcdUSB 2.00
  6. bDeviceClass 239 Miscellaneous Device
  7. bDeviceSubClass 2
  8. bDeviceProtocol 1 Interface Association
  9. bMaxPacketSize0 64
  10. idVendor 0x2fc6
  11. idProduct 0x6013
  12. bcdDevice 2.01
  13. iManufacturer 1 LIS Tech
  14. iProduct 2 LIS_MIIS_8X8_192K
  15. iSerial 3 LIS CTUAD
  16. bNumConfigurations 1
  17. Configuration Descriptor:
  18. bLength 9
  19. bDescriptorType 2
  20. wTotalLength 0x0503
  21. bNumInterfaces 4
  22. bConfigurationValue 1
  23. iConfiguration 0
  24. bmAttributes 0x80
  25. (Bus Powered)
  26. MaxPower 100mA
  27. Interface Association:
  28. bLength 8
  29. bDescriptorType 11
  30. bFirstInterface 0
  31. bInterfaceCount 4
  32. bFunctionClass 1 Audio
  33. bFunctionSubClass 0
  34. bFunctionProtocol 32
  35. iFunction 0
  36. Interface Descriptor:
  37. bLength 9
  38. bDescriptorType 4
  39. bInterfaceNumber 0
  40. bAlternateSetting 0
  41. bNumEndpoints 0
  42. bInterfaceClass 1 Audio
  43. bInterfaceSubClass 1 Control Device //00undef 01control 02stream 03midistream
  44. bInterfaceProtocol 32
  45. iInterface 2 LIS_MIIS_8X8_192K
  46. AudioControl Interface Descriptor:
  47. bLength 9
  48. bDescriptorType 36
  49. bDescriptorSubtype 1 (HEADER) // Class-Specific AC Interface Header Descriptor
  50. bcdADC 2.00
  51. bCategory 4
  52. wTotalLength 0x00b4 //类特定描述符总长度
  53. bmControls 0x00
  54. AudioControl Interface Descriptor:
  55. bLength 8
  56. bDescriptorType 36
  57. bDescriptorSubtype 10 (CLOCK_SOURCE)
  58. bClockID 5
  59. bmAttributes 3 Internal programmable clock
  60. bmControls 0x07
  61. Clock Frequency Control (read/write)
  62. Clock Validity Control (read-only)
  63. bAssocTerminal 0
  64. iClockSource 0
  65. AudioControl Interface Descriptor:
  66. bLength 17
  67. bDescriptorType 36
  68. bDescriptorSubtype 2 (INPUT_TERMINAL)
  69. bTerminalID 1
  70. wTerminalType 0x0101 USB Streaming
  71. bAssocTerminal 0
  72. bCSourceID 5
  73. bNrChannels 8
  74. bmChannelConfig 0x000000ff
  75. Front Left (FL)
  76. Front Right (FR)
  77. Front Center (FC)
  78. Low Frequency Effects (LFE)
  79. Back Left (BL)
  80. Back Right (BR)
  81. Front Left of Center (FLC)
  82. Front Right of Center (FRC)
  83. iChannelNames 0
  84. bmControls 0x0000
  85. iTerminal 0
  86. AudioControl Interface Descriptor:
  87. bLength 42
  88. bDescriptorType 36
  89. bDescriptorSubtype 6 (FEATURE_UNIT)
  90. bUnitID 3
  91. bSourceID 1
  92. bmaControls(0) 0x0000000f
  93. Mute Control (read/write)
  94. Volume Control (read/write)
  95. bmaControls(1) 0x0000000c
  96. Volume Control (read/write)
  97. bmaControls(2) 0x0000000c
  98. Volume Control (read/write)
  99. bmaControls(3) 0x0000000c
  100. Volume Control (read/write)
  101. bmaControls(4) 0x0000000c
  102. Volume Control (read/write)
  103. bmaControls(5) 0x0000000c
  104. Volume Control (read/write)
  105. bmaControls(6) 0x0000000c
  106. Volume Control (read/write)
  107. bmaControls(7) 0x0000000c
  108. Volume Control (read/write)
  109. bmaControls(8) 0x0000000c
  110. Volume Control (read/write)
  111. iFeature 0
  112. AudioControl Interface Descriptor:
  113. bLength 12
  114. bDescriptorType 36
  115. bDescriptorSubtype 3 (OUTPUT_TERMINAL)
  116. bTerminalID 4
  117. wTerminalType 0x0301 Speaker
  118. bAssocTerminal 0
  119. bSourceID 3
  120. bCSourceID 5
  121. bmControls 0x0000
  122. iTerminal 0
  123. AudioControl Interface Descriptor:
  124. bLength 8
  125. bDescriptorType 36
  126. bDescriptorSubtype 10 (CLOCK_SOURCE)
  127. bClockID 15
  128. bmAttributes 3 Internal programmable clock
  129. bmControls 0x07
  130. Clock Frequency Control (read/write)
  131. Clock Validity Control (read-only)
  132. bAssocTerminal 0
  133. iClockSource 0
  134. AudioControl Interface Descriptor:
  135. bLength 17
  136. bDescriptorType 36
  137. bDescriptorSubtype 2 (INPUT_TERMINAL)
  138. bTerminalID 10
  139. wTerminalType 0x0603 Line Connector
  140. bAssocTerminal 0
  141. bCSourceID 15
  142. bNrChannels 8
  143. bmChannelConfig 0x000000ff
  144. Front Left (FL)
  145. Front Right (FR)
  146. Front Center (FC)
  147. Low Frequency Effects (LFE)
  148. Back Left (BL)
  149. Back Right (BR)
  150. Front Left of Center (FLC)
  151. Front Right of Center (FRC)
  152. iChannelNames 0
  153. bmControls 0x0000
  154. iTerminal 0
  155. AudioControl Interface Descriptor:
  156. bLength 12
  157. bDescriptorType 36
  158. bDescriptorSubtype 3 (OUTPUT_TERMINAL)
  159. bTerminalID 13
  160. wTerminalType 0x0101 USB Streaming
  161. bAssocTerminal 0
  162. bSourceID 10
  163. bCSourceID 15
  164. bmControls 0x0000
  165. iTerminal 0
  166. AudioControl Interface Descriptor:
  167. bLength 8
  168. bDescriptorType 36
  169. bDescriptorSubtype 10 (CLOCK_SOURCE)
  170. bClockID 21
  171. bmAttributes 2 Internal variable clock
  172. bmControls 0x07
  173. Clock Frequency Control (read/write)
  174. Clock Validity Control (read-only)
  175. bAssocTerminal 0
  176. iClockSource 0
  177. AudioControl Interface Descriptor:
  178. bLength 17
  179. bDescriptorType 36
  180. bDescriptorSubtype 2 (INPUT_TERMINAL)
  181. bTerminalID 17
  182. wTerminalType 0x0101 USB Streaming
  183. bAssocTerminal 0
  184. bCSourceID 21
  185. bNrChannels 2
  186. bmChannelConfig 0x00000003
  187. Front Left (FL)
  188. Front Right (FR)
  189. iChannelNames 0
  190. bmControls 0x0000
  191. iTerminal 0
  192. AudioControl Interface Descriptor:
  193. bLength 18
  194. bDescriptorType 36
  195. bDescriptorSubtype 6 (FEATURE_UNIT)
  196. bUnitID 19
  197. bSourceID 17
  198. bmaControls(0) 0x0000000f
  199. Mute Control (read/write)
  200. Volume Control (read/write)
  201. bmaControls(1) 0x0000000c
  202. Volume Control (read/write)
  203. bmaControls(2) 0x0000000c
  204. Volume Control (read/write)
  205. iFeature 0
  206. AudioControl Interface Descriptor:
  207. bLength 12
  208. bDescriptorType 36
  209. bDescriptorSubtype 3 (OUTPUT_TERMINAL)
  210. bTerminalID 20
  211. wTerminalType 0x0302 Headphones
  212. bAssocTerminal 0
  213. bSourceID 19
  214. bCSourceID 21
  215. bmControls 0x0000
  216. iTerminal 0
  217. Interface Descriptor:
  218. bLength 9
  219. bDescriptorType 4
  220. bInterfaceNumber 1
  221. bAlternateSetting 0 //0
  222. bNumEndpoints 0
  223. bInterfaceClass 1 Audio
  224. bInterfaceSubClass 2 Streaming
  225. bInterfaceProtocol 32
  226. iInterface 4 LIS_MIIS_8X8_192K
  227. Interface Descriptor:
  228. bLength 9
  229. bDescriptorType 4 //4 标准音频流接口描述符 P75
  230. bInterfaceNumber 1
  231. bAlternateSetting 1 //1
  232. bNumEndpoints 2
  233. bInterfaceClass 1 Audio
  234. bInterfaceSubClass 2 Streaming
  235. bInterfaceProtocol 32
  236. iInterface 0
  237. AudioStreaming Interface Descriptor: // 36 类特定 AS接口描述符 P76
  238. bLength 16
  239. bDescriptorType 36
  240. bDescriptorSubtype 1 (AS_GENERAL)
  241. bTerminalLink 1 //连接 IT 1
  242. bmControls 0x05
  243. Active Alternate Setting Control (read-only)
  244. Valid Alternate Setting Control (read-only)
  245. bFormatType 1
  246. bmFormats 0x00000001
  247. PCM
  248. bNrChannels 2 //两个物理通道
  249. bmChannelConfig 0x00000003
  250. Front Left (FL)
  251. Front Right (FR)
  252. iChannelNames 0
  253. AudioStreaming Interface Descriptor: //
  254. bLength 6
  255. bDescriptorType 36
  256. bDescriptorSubtype 2 (FORMAT_TYPE)
  257. bFormatType 1 (FORMAT_TYPE_I)
  258. bSubslotSize 2
  259. bBitResolution 16
  260. Endpoint Descriptor: //5 标准音频流同步音频数据端点描述符 P85
  261. bLength 7
  262. bDescriptorType 5
  263. bEndpointAddress 0x01 EP 1 OUT
  264. bmAttributes 5
  265. Transfer Type Isochronous
  266. Synch Type Asynchronous
  267. Usage Type Data
  268. wMaxPacketSize 0x0308 1x 776 bytes
  269. bInterval 1
  270. AudioStreaming Endpoint Descriptor: //37 类特定音频流同步音频数据端点描述符 p87
  271. bLength 8
  272. bDescriptorType 37
  273. bDescriptorSubtype 1 (EP_GENERAL)
  274. bmAttributes 0x00
  275. bmControls 0x00
  276. bLockDelayUnits 0 Undefined
  277. wLockDelay 0x0000
  278. Endpoint Descriptor:
  279. bLength 7
  280. bDescriptorType 5
  281. bEndpointAddress 0x81 EP 1 IN
  282. bmAttributes 17
  283. Transfer Type Isochronous
  284. Synch Type None
  285. Usage Type Feedback
  286. wMaxPacketSize 0x0004 1x 4 bytes
  287. bInterval 4
  288. Interface Descriptor:
  289. bLength 9
  290. bDescriptorType 4
  291. bInterfaceNumber 1
  292. bAlternateSetting 2 //2
  293. bNumEndpoints 2
  294. bInterfaceClass 1 Audio
  295. bInterfaceSubClass 2 Streaming
  296. bInterfaceProtocol 32
  297. iInterface 0
  298. AudioStreaming Interface Descriptor:
  299. bLength 16
  300. bDescriptorType 36
  301. bDescriptorSubtype 1 (AS_GENERAL)
  302. bTerminalLink 1
  303. bmControls 0x05
  304. Active Alternate Setting Control (read-only)
  305. Valid Alternate Setting Control (read-only)
  306. bFormatType 1
  307. bmFormats 0x00000001
  308. PCM
  309. bNrChannels 2
  310. bmChannelConfig 0x00000003
  311. Front Left (FL)
  312. Front Right (FR)
  313. iChannelNames 0
  314. AudioStreaming Interface Descriptor:
  315. bLength 6
  316. bDescriptorType 36
  317. bDescriptorSubtype 2 (FORMAT_TYPE)
  318. bFormatType 1 (FORMAT_TYPE_I)
  319. bSubslotSize 3
  320. bBitResolution 24
  321. Endpoint Descriptor:
  322. bLength 7
  323. bDescriptorType 5
  324. bEndpointAddress 0x01 EP 1 OUT
  325. bmAttributes 5
  326. Transfer Type Isochronous
  327. Synch Type Asynchronous
  328. Usage Type Data
  329. wMaxPacketSize 0x0308 1x 776 bytes
  330. bInterval 1
  331. AudioStreaming Endpoint Descriptor:
  332. bLength 8
  333. bDescriptorType 37
  334. bDescriptorSubtype 1 (EP_GENERAL)
  335. bmAttributes 0x00
  336. bmControls 0x00
  337. bLockDelayUnits 0 Undefined
  338. wLockDelay 0x0000
  339. Endpoint Descriptor:
  340. bLength 7
  341. bDescriptorType 5
  342. bEndpointAddress 0x81 EP 1 IN
  343. bmAttributes 17
  344. Transfer Type Isochronous
  345. Synch Type None
  346. Usage Type Feedback
  347. wMaxPacketSize 0x0004 1x 4 bytes
  348. bInterval 4
  349. Interface Descriptor:
  350. bLength 9
  351. bDescriptorType 4
  352. bInterfaceNumber 1
  353. bAlternateSetting 3
  354. bNumEndpoints 2
  355. bInterfaceClass 1 Audio
  356. bInterfaceSubClass 2 Streaming
  357. bInterfaceProtocol 32
  358. iInterface 0
  359. AudioStreaming Interface Descriptor:
  360. bLength 16
  361. bDescriptorType 36
  362. bDescriptorSubtype 1 (AS_GENERAL)
  363. bTerminalLink 1
  364. bmControls 0x05
  365. Active Alternate Setting Control (read-only)
  366. Valid Alternate Setting Control (read-only)
  367. bFormatType 1
  368. bmFormats 0x00000001
  369. PCM
  370. bNrChannels 2
  371. bmChannelConfig 0x00000003
  372. Front Left (FL)
  373. Front Right (FR)
  374. iChannelNames 0
  375. AudioStreaming Interface Descriptor:
  376. bLength 6
  377. bDescriptorType 36
  378. bDescriptorSubtype 2 (FORMAT_TYPE)
  379. bFormatType 1 (FORMAT_TYPE_I)
  380. bSubslotSize 4
  381. bBitResolution 32
  382. Endpoint Descriptor:
  383. bLength 7
  384. bDescriptorType 5
  385. bEndpointAddress 0x01 EP 1 OUT
  386. bmAttributes 5
  387. Transfer Type Isochronous
  388. Synch Type Asynchronous
  389. Usage Type Data
  390. wMaxPacketSize 0x0308 1x 776 bytes
  391. bInterval 1
  392. AudioStreaming Endpoint Descriptor:
  393. bLength 8
  394. bDescriptorType 37
  395. bDescriptorSubtype 1 (EP_GENERAL)
  396. bmAttributes 0x00
  397. bmControls 0x00
  398. bLockDelayUnits 0 Undefined
  399. wLockDelay 0x0000
  400. Endpoint Descriptor:
  401. bLength 7
  402. bDescriptorType 5
  403. bEndpointAddress 0x81 EP 1 IN
  404. bmAttributes 17
  405. Transfer Type Isochronous
  406. Synch Type None
  407. Usage Type Feedback
  408. wMaxPacketSize 0x0004 1x 4 bytes
  409. bInterval 4
  410. Interface Descriptor:
  411. bLength 9
  412. bDescriptorType 4
  413. bInterfaceNumber 1
  414. bAlternateSetting 4
  415. bNumEndpoints 2
  416. bInterfaceClass 1 Audio
  417. bInterfaceSubClass 2 Streaming
  418. bInterfaceProtocol 32
  419. iInterface 0
  420. AudioStreaming Interface Descriptor:
  421. bLength 16
  422. bDescriptorType 36
  423. bDescriptorSubtype 1 (AS_GENERAL)
  424. bTerminalLink 1
  425. bmControls 0x05
  426. Active Alternate Setting Control (read-only)
  427. Valid Alternate Setting Control (read-only)
  428. bFormatType 1
  429. bmFormats 0x00000001
  430. PCM
  431. bNrChannels 6
  432. bmChannelConfig 0x0000003f
  433. Front Left (FL)
  434. Front Right (FR)
  435. Front Center (FC)
  436. Low Frequency Effects (LFE)
  437. Back Left (BL)
  438. Back Right (BR)
  439. iChannelNames 0
  440. AudioStreaming Interface Descriptor:
  441. bLength 6
  442. bDescriptorType 36
  443. bDescriptorSubtype 2 (FORMAT_TYPE)
  444. bFormatType 1 (FORMAT_TYPE_I)
  445. bSubslotSize 2
  446. bBitResolution 16
  447. Endpoint Descriptor:
  448. bLength 7
  449. bDescriptorType 5
  450. bEndpointAddress 0x01 EP 1 OUT
  451. bmAttributes 5
  452. Transfer Type Isochronous
  453. Synch Type Asynchronous
  454. Usage Type Data
  455. wMaxPacketSize 0x0308 1x 776 bytes
  456. bInterval 1
  457. AudioStreaming Endpoint Descriptor:
  458. bLength 8
  459. bDescriptorType 37
  460. bDescriptorSubtype 1 (EP_GENERAL)
  461. bmAttributes 0x00
  462. bmControls 0x00
  463. bLockDelayUnits 0 Undefined
  464. wLockDelay 0x0000
  465. Endpoint Descriptor:
  466. bLength 7
  467. bDescriptorType 5
  468. bEndpointAddress 0x81 EP 1 IN
  469. bmAttributes 17
  470. Transfer Type Isochronous
  471. Synch Type None
  472. Usage Type Feedback
  473. wMaxPacketSize 0x0004 1x 4 bytes
  474. bInterval 4
  475. Interface Descriptor:
  476. bLength 9
  477. bDescriptorType 4
  478. bInterfaceNumber 1
  479. bAlternateSetting 5
  480. bNumEndpoints 2
  481. bInterfaceClass 1 Audio
  482. bInterfaceSubClass 2 Streaming
  483. bInterfaceProtocol 32
  484. iInterface 0
  485. AudioStreaming Interface Descriptor:
  486. bLength 16
  487. bDescriptorType 36
  488. bDescriptorSubtype 1 (AS_GENERAL)
  489. bTerminalLink 1
  490. bmControls 0x05
  491. Active Alternate Setting Control (read-only)
  492. Valid Alternate Setting Control (read-only)
  493. bFormatType 1
  494. bmFormats 0x00000001
  495. PCM
  496. bNrChannels 6
  497. bmChannelConfig 0x0000003f
  498. Front Left (FL)
  499. Front Right (FR)
  500. Front Center (FC)
  501. Low Frequency Effects (LFE)
  502. Back Left (BL)
  503. Back Right (BR)
  504. iChannelNames 0
  505. AudioStreaming Interface Descriptor:
  506. bLength 6
  507. bDescriptorType 36
  508. bDescriptorSubtype 2 (FORMAT_TYPE)
  509. bFormatType 1 (FORMAT_TYPE_I)
  510. bSubslotSize 3
  511. bBitResolution 24
  512. Endpoint Descriptor:
  513. bLength 7
  514. bDescriptorType 5
  515. bEndpointAddress 0x01 EP 1 OUT
  516. bmAttributes 5
  517. Transfer Type Isochronous
  518. Synch Type Asynchronous
  519. Usage Type Data
  520. wMaxPacketSize 0x0308 1x 776 bytes
  521. bInterval 1
  522. AudioStreaming Endpoint Descriptor:
  523. bLength 8
  524. bDescriptorType 37
  525. bDescriptorSubtype 1 (EP_GENERAL)
  526. bmAttributes 0x00
  527. bmControls 0x00
  528. bLockDelayUnits 0 Undefined
  529. wLockDelay 0x0000
  530. Endpoint Descriptor:
  531. bLength 7
  532. bDescriptorType 5
  533. bEndpointAddress 0x81 EP 1 IN
  534. bmAttributes 17
  535. Transfer Type Isochronous
  536. Synch Type None
  537. Usage Type Feedback
  538. wMaxPacketSize 0x0004 1x 4 bytes
  539. bInterval 4
  540. Interface Descriptor:
  541. bLength 9
  542. bDescriptorType 4
  543. bInterfaceNumber 1
  544. bAlternateSetting 6
  545. bNumEndpoints 2
  546. bInterfaceClass 1 Audio
  547. bInterfaceSubClass 2 Streaming
  548. bInterfaceProtocol 32
  549. iInterface 0
  550. AudioStreaming Interface Descriptor:
  551. bLength 16
  552. bDescriptorType 36
  553. bDescriptorSubtype 1 (AS_GENERAL)
  554. bTerminalLink 1
  555. bmControls 0x05
  556. Active Alternate Setting Control (read-only)
  557. Valid Alternate Setting Control (read-only)
  558. bFormatType 1
  559. bmFormats 0x00000001
  560. PCM
  561. bNrChannels 6
  562. bmChannelConfig 0x0000003f
  563. Front Left (FL)
  564. Front Right (FR)
  565. Front Center (FC)
  566. Low Frequency Effects (LFE)
  567. Back Left (BL)
  568. Back Right (BR)
  569. iChannelNames 0
  570. AudioStreaming Interface Descriptor:
  571. bLength 6
  572. bDescriptorType 36
  573. bDescriptorSubtype 2 (FORMAT_TYPE)
  574. bFormatType 1 (FORMAT_TYPE_I)
  575. bSubslotSize 4
  576. bBitResolution 32
  577. Endpoint Descriptor:
  578. bLength 7
  579. bDescriptorType 5
  580. bEndpointAddress 0x01 EP 1 OUT
  581. bmAttributes 5
  582. Transfer Type Isochronous
  583. Synch Type Asynchronous
  584. Usage Type Data
  585. wMaxPacketSize 0x0308 1x 776 bytes
  586. bInterval 1
  587. AudioStreaming Endpoint Descriptor:
  588. bLength 8
  589. bDescriptorType 37
  590. bDescriptorSubtype 1 (EP_GENERAL)
  591. bmAttributes 0x00
  592. bmControls 0x00
  593. bLockDelayUnits 0 Undefined
  594. wLockDelay 0x0000
  595. Endpoint Descriptor:
  596. bLength 7
  597. bDescriptorType 5
  598. bEndpointAddress 0x81 EP 1 IN
  599. bmAttributes 17
  600. Transfer Type Isochronous
  601. Synch Type None
  602. Usage Type Feedback
  603. wMaxPacketSize 0x0004 1x 4 bytes
  604. bInterval 4
  605. Interface Descriptor:
  606. bLength 9
  607. bDescriptorType 4
  608. bInterfaceNumber 1
  609. bAlternateSetting 7
  610. bNumEndpoints 2
  611. bInterfaceClass 1 Audio
  612. bInterfaceSubClass 2 Streaming
  613. bInterfaceProtocol 32
  614. iInterface 0
  615. AudioStreaming Interface Descriptor:
  616. bLength 16
  617. bDescriptorType 36
  618. bDescriptorSubtype 1 (AS_GENERAL)
  619. bTerminalLink 1
  620. bmControls 0x05
  621. Active Alternate Setting Control (read-only)
  622. Valid Alternate Setting Control (read-only)
  623. bFormatType 1
  624. bmFormats 0x00000001
  625. PCM
  626. bNrChannels 8
  627. bmChannelConfig 0x000000ff
  628. Front Left (FL)
  629. Front Right (FR)
  630. Front Center (FC)
  631. Low Frequency Effects (LFE)
  632. Back Left (BL)
  633. Back Right (BR)
  634. Front Left of Center (FLC)
  635. Front Right of Center (FRC)
  636. iChannelNames 0
  637. AudioStreaming Interface Descriptor:
  638. bLength 6
  639. bDescriptorType 36
  640. bDescriptorSubtype 2 (FORMAT_TYPE)
  641. bFormatType 1 (FORMAT_TYPE_I)
  642. bSubslotSize 2
  643. bBitResolution 16
  644. Endpoint Descriptor:
  645. bLength 7
  646. bDescriptorType 5
  647. bEndpointAddress 0x01 EP 1 OUT
  648. bmAttributes 5
  649. Transfer Type Isochronous
  650. Synch Type Asynchronous
  651. Usage Type Data
  652. wMaxPacketSize 0x0308 1x 776 bytes
  653. bInterval 1
  654. AudioStreaming Endpoint Descriptor:
  655. bLength 8
  656. bDescriptorType 37
  657. bDescriptorSubtype 1 (EP_GENERAL)
  658. bmAttributes 0x00
  659. bmControls 0x00
  660. bLockDelayUnits 0 Undefined
  661. wLockDelay 0x0000
  662. Endpoint Descriptor:
  663. bLength 7
  664. bDescriptorType 5
  665. bEndpointAddress 0x81 EP 1 IN
  666. bmAttributes 17
  667. Transfer Type Isochronous
  668. Synch Type None
  669. Usage Type Feedback
  670. wMaxPacketSize 0x0004 1x 4 bytes
  671. bInterval 4
  672. Interface Descriptor:
  673. bLength 9
  674. bDescriptorType 4
  675. bInterfaceNumber 1
  676. bAlternateSetting 8
  677. bNumEndpoints 2
  678. bInterfaceClass 1 Audio
  679. bInterfaceSubClass 2 Streaming
  680. bInterfaceProtocol 32
  681. iInterface 0
  682. AudioStreaming Interface Descriptor:
  683. bLength 16
  684. bDescriptorType 36
  685. bDescriptorSubtype 1 (AS_GENERAL)
  686. bTerminalLink 1
  687. bmControls 0x05
  688. Active Alternate Setting Control (read-only)
  689. Valid Alternate Setting Control (read-only)
  690. bFormatType 1
  691. bmFormats 0x00000001
  692. PCM
  693. bNrChannels 8
  694. bmChannelConfig 0x000000ff
  695. Front Left (FL)
  696. Front Right (FR)
  697. Front Center (FC)
  698. Low Frequency Effects (LFE)
  699. Back Left (BL)
  700. Back Right (BR)
  701. Front Left of Center (FLC)
  702. Front Right of Center (FRC)
  703. iChannelNames 0
  704. AudioStreaming Interface Descriptor:
  705. bLength 6
  706. bDescriptorType 36
  707. bDescriptorSubtype 2 (FORMAT_TYPE)
  708. bFormatType 1 (FORMAT_TYPE_I)
  709. bSubslotSize 3
  710. bBitResolution 24
  711. Endpoint Descriptor:
  712. bLength 7
  713. bDescriptorType 5
  714. bEndpointAddress 0x01 EP 1 OUT
  715. bmAttributes 5
  716. Transfer Type Isochronous
  717. Synch Type Asynchronous
  718. Usage Type Data
  719. wMaxPacketSize 0x0308 1x 776 bytes
  720. bInterval 1
  721. AudioStreaming Endpoint Descriptor:
  722. bLength 8
  723. bDescriptorType 37
  724. bDescriptorSubtype 1 (EP_GENERAL)
  725. bmAttributes 0x00
  726. bmControls 0x00
  727. bLockDelayUnits 0 Undefined
  728. wLockDelay 0x0000
  729. Endpoint Descriptor:
  730. bLength 7
  731. bDescriptorType 5
  732. bEndpointAddress 0x81 EP 1 IN
  733. bmAttributes 17
  734. Transfer Type Isochronous
  735. Synch Type None
  736. Usage Type Feedback
  737. wMaxPacketSize 0x0004 1x 4 bytes
  738. bInterval 4
  739. Interface Descriptor:
  740. bLength 9
  741. bDescriptorType 4
  742. bInterfaceNumber 1
  743. bAlternateSetting 9
  744. bNumEndpoints 2
  745. bInterfaceClass 1 Audio
  746. bInterfaceSubClass 2 Streaming
  747. bInterfaceProtocol 32
  748. iInterface 0
  749. AudioStreaming Interface Descriptor:
  750. bLength 16
  751. bDescriptorType 36
  752. bDescriptorSubtype 1 (AS_GENERAL)
  753. bTerminalLink 1
  754. bmControls 0x05
  755. Active Alternate Setting Control (read-only)
  756. Valid Alternate Setting Control (read-only)
  757. bFormatType 1
  758. bmFormats 0x00000001
  759. PCM
  760. bNrChannels 8
  761. bmChannelConfig 0x000000ff
  762. Front Left (FL)
  763. Front Right (FR)
  764. Front Center (FC)
  765. Low Frequency Effects (LFE)
  766. Back Left (BL)
  767. Back Right (BR)
  768. Front Left of Center (FLC)
  769. Front Right of Center (FRC)
  770. iChannelNames 0
  771. AudioStreaming Interface Descriptor:
  772. bLength 6
  773. bDescriptorType 36
  774. bDescriptorSubtype 2 (FORMAT_TYPE)
  775. bFormatType 1 (FORMAT_TYPE_I)
  776. bSubslotSize 4
  777. bBitResolution 32
  778. Endpoint Descriptor:
  779. bLength 7
  780. bDescriptorType 5
  781. bEndpointAddress 0x01 EP 1 OUT
  782. bmAttributes 5
  783. Transfer Type Isochronous
  784. Synch Type Asynchronous
  785. Usage Type Data
  786. wMaxPacketSize 0x0308 1x 776 bytes
  787. bInterval 1
  788. AudioStreaming Endpoint Descriptor:
  789. bLength 8
  790. bDescriptorType 37
  791. bDescriptorSubtype 1 (EP_GENERAL)
  792. bmAttributes 0x00
  793. bmControls 0x00
  794. bLockDelayUnits 0 Undefined
  795. wLockDelay 0x0000
  796. Endpoint Descriptor:
  797. bLength 7
  798. bDescriptorType 5
  799. bEndpointAddress 0x81 EP 1 IN
  800. bmAttributes 17
  801. Transfer Type Isochronous
  802. Synch Type None
  803. Usage Type Feedback
  804. wMaxPacketSize 0x0004 1x 4 bytes
  805. bInterval 4
  806. Interface Descriptor:
  807. bLength 9
  808. bDescriptorType 4
  809. bInterfaceNumber 2 //数字是 2
  810. bAlternateSetting 0
  811. bNumEndpoints 0
  812. bInterfaceClass 1 Audio
  813. bInterfaceSubClass 2 Streaming
  814. bInterfaceProtocol 32
  815. iInterface 5 LIS_MIIS_8X8_192K
  816. Interface Descriptor:
  817. bLength 9
  818. bDescriptorType 4
  819. bInterfaceNumber 2
  820. bAlternateSetting 1
  821. bNumEndpoints 1
  822. bInterfaceClass 1 Audio
  823. bInterfaceSubClass 2 Streaming
  824. bInterfaceProtocol 32
  825. iInterface 0
  826. AudioStreaming Interface Descriptor:
  827. bLength 16
  828. bDescriptorType 36
  829. bDescriptorSubtype 1 (AS_GENERAL)
  830. bTerminalLink 13 //usb 输入端
  831. bmControls 0x05
  832. Active Alternate Setting Control (read-only)
  833. Valid Alternate Setting Control (read-only)
  834. bFormatType 1
  835. bmFormats 0x00000001
  836. PCM
  837. bNrChannels 2
  838. bmChannelConfig 0x00000003
  839. Front Left (FL)
  840. Front Right (FR)
  841. iChannelNames 0
  842. AudioStreaming Interface Descriptor:
  843. bLength 6
  844. bDescriptorType 36
  845. bDescriptorSubtype 2 (FORMAT_TYPE)
  846. bFormatType 1 (FORMAT_TYPE_I)
  847. bSubslotSize 2
  848. bBitResolution 16
  849. Endpoint Descriptor:
  850. bLength 7
  851. bDescriptorType 5
  852. bEndpointAddress 0x82 EP 2 IN
  853. bmAttributes 5
  854. Transfer Type Isochronous
  855. Synch Type Asynchronous
  856. Usage Type Data
  857. wMaxPacketSize 0x0308 1x 776 bytes
  858. bInterval 1
  859. AudioStreaming Endpoint Descriptor:
  860. bLength 8
  861. bDescriptorType 37
  862. bDescriptorSubtype 1 (EP_GENERAL)
  863. bmAttributes 0x00
  864. bmControls 0x00
  865. bLockDelayUnits 0 Undefined
  866. wLockDelay 0x0000
  867. Interface Descriptor:
  868. bLength 9
  869. bDescriptorType 4
  870. bInterfaceNumber 2
  871. bAlternateSetting 2
  872. bNumEndpoints 1
  873. bInterfaceClass 1 Audio
  874. bInterfaceSubClass 2 Streaming
  875. bInterfaceProtocol 32
  876. iInterface 0
  877. AudioStreaming Interface Descriptor:
  878. bLength 16
  879. bDescriptorType 36
  880. bDescriptorSubtype 1 (AS_GENERAL)
  881. bTerminalLink 13
  882. bmControls 0x05
  883. Active Alternate Setting Control (read-only)
  884. Valid Alternate Setting Control (read-only)
  885. bFormatType 1
  886. bmFormats 0x00000001
  887. PCM
  888. bNrChannels 2
  889. bmChannelConfig 0x00000003
  890. Front Left (FL)
  891. Front Right (FR)
  892. iChannelNames 0
  893. AudioStreaming Interface Descriptor:
  894. bLength 6
  895. bDescriptorType 36
  896. bDescriptorSubtype 2 (FORMAT_TYPE)
  897. bFormatType 1 (FORMAT_TYPE_I)
  898. bSubslotSize 3
  899. bBitResolution 24
  900. Endpoint Descriptor:
  901. bLength 7
  902. bDescriptorType 5
  903. bEndpointAddress 0x82 EP 2 IN
  904. bmAttributes 5
  905. Transfer Type Isochronous
  906. Synch Type Asynchronous
  907. Usage Type Data
  908. wMaxPacketSize 0x0308 1x 776 bytes
  909. bInterval 1
  910. AudioStreaming Endpoint Descriptor:
  911. bLength 8
  912. bDescriptorType 37
  913. bDescriptorSubtype 1 (EP_GENERAL)
  914. bmAttributes 0x00
  915. bmControls 0x00
  916. bLockDelayUnits 0 Undefined
  917. wLockDelay 0x0000
  918. Interface Descriptor:
  919. bLength 9
  920. bDescriptorType 4
  921. bInterfaceNumber 2
  922. bAlternateSetting 3
  923. bNumEndpoints 1
  924. bInterfaceClass 1 Audio
  925. bInterfaceSubClass 2 Streaming
  926. bInterfaceProtocol 32
  927. iInterface 0
  928. AudioStreaming Interface Descriptor:
  929. bLength 16
  930. bDescriptorType 36
  931. bDescriptorSubtype 1 (AS_GENERAL)
  932. bTerminalLink 13
  933. bmControls 0x05
  934. Active Alternate Setting Control (read-only)
  935. Valid Alternate Setting Control (read-only)
  936. bFormatType 1
  937. bmFormats 0x00000001
  938. PCM
  939. bNrChannels 2
  940. bmChannelConfig 0x00000003
  941. Front Left (FL)
  942. Front Right (FR)
  943. iChannelNames 0
  944. AudioStreaming Interface Descriptor:
  945. bLength 6
  946. bDescriptorType 36
  947. bDescriptorSubtype 2 (FORMAT_TYPE)
  948. bFormatType 1 (FORMAT_TYPE_I)
  949. bSubslotSize 4
  950. bBitResolution 32
  951. Endpoint Descriptor:
  952. bLength 7
  953. bDescriptorType 5
  954. bEndpointAddress 0x82 EP 2 IN
  955. bmAttributes 5
  956. Transfer Type Isochronous
  957. Synch Type Asynchronous
  958. Usage Type Data
  959. wMaxPacketSize 0x0308 1x 776 bytes
  960. bInterval 1
  961. AudioStreaming Endpoint Descriptor:
  962. bLength 8
  963. bDescriptorType 37
  964. bDescriptorSubtype 1 (EP_GENERAL)
  965. bmAttributes 0x00
  966. bmControls 0x00
  967. bLockDelayUnits 0 Undefined
  968. wLockDelay 0x0000
  969. Interface Descriptor:
  970. bLength 9
  971. bDescriptorType 4
  972. bInterfaceNumber 2
  973. bAlternateSetting 4
  974. bNumEndpoints 1
  975. bInterfaceClass 1 Audio
  976. bInterfaceSubClass 2 Streaming
  977. bInterfaceProtocol 32
  978. iInterface 0
  979. AudioStreaming Interface Descriptor:
  980. bLength 16
  981. bDescriptorType 36
  982. bDescriptorSubtype 1 (AS_GENERAL)
  983. bTerminalLink 13
  984. bmControls 0x05
  985. Active Alternate Setting Control (read-only)
  986. Valid Alternate Setting Control (read-only)
  987. bFormatType 1
  988. bmFormats 0x00000001
  989. PCM
  990. bNrChannels 6
  991. bmChannelConfig 0x0000003f
  992. Front Left (FL)
  993. Front Right (FR)
  994. Front Center (FC)
  995. Low Frequency Effects (LFE)
  996. Back Left (BL)
  997. Back Right (BR)
  998. iChannelNames 0
  999. AudioStreaming Interface Descriptor:
  1000. bLength 6
  1001. bDescriptorType 36
  1002. bDescriptorSubtype 2 (FORMAT_TYPE)
  1003. bFormatType 1 (FORMAT_TYPE_I)
  1004. bSubslotSize 2
  1005. bBitResolution 16
  1006. Endpoint Descriptor:
  1007. bLength 7
  1008. bDescriptorType 5
  1009. bEndpointAddress 0x82 EP 2 IN
  1010. bmAttributes 5
  1011. Transfer Type Isochronous
  1012. Synch Type Asynchronous
  1013. Usage Type Data
  1014. wMaxPacketSize 0x0308 1x 776 bytes
  1015. bInterval 1
  1016. AudioStreaming Endpoint Descriptor:
  1017. bLength 8
  1018. bDescriptorType 37
  1019. bDescriptorSubtype 1 (EP_GENERAL)
  1020. bmAttributes 0x00
  1021. bmControls 0x00
  1022. bLockDelayUnits 0 Undefined
  1023. wLockDelay 0x0000
  1024. Interface Descriptor:
  1025. bLength 9
  1026. bDescriptorType 4
  1027. bInterfaceNumber 2
  1028. bAlternateSetting 5
  1029. bNumEndpoints 1
  1030. bInterfaceClass 1 Audio
  1031. bInterfaceSubClass 2 Streaming
  1032. bInterfaceProtocol 32
  1033. iInterface 0
  1034. AudioStreaming Interface Descriptor:
  1035. bLength 16
  1036. bDescriptorType 36
  1037. bDescriptorSubtype 1 (AS_GENERAL)
  1038. bTerminalLink 13
  1039. bmControls 0x05
  1040. Active Alternate Setting Control (read-only)
  1041. Valid Alternate Setting Control (read-only)
  1042. bFormatType 1
  1043. bmFormats 0x00000001
  1044. PCM
  1045. bNrChannels 6
  1046. bmChannelConfig 0x0000003f
  1047. Front Left (FL)
  1048. Front Right (FR)
  1049. Front Center (FC)
  1050. Low Frequency Effects (LFE)
  1051. Back Left (BL)
  1052. Back Right (BR)
  1053. iChannelNames 0
  1054. AudioStreaming Interface Descriptor:
  1055. bLength 6
  1056. bDescriptorType 36
  1057. bDescriptorSubtype 2 (FORMAT_TYPE)
  1058. bFormatType 1 (FORMAT_TYPE_I)
  1059. bSubslotSize 3
  1060. bBitResolution 24
  1061. Endpoint Descriptor:
  1062. bLength 7
  1063. bDescriptorType 5
  1064. bEndpointAddress 0x82 EP 2 IN
  1065. bmAttributes 5
  1066. Transfer Type Isochronous
  1067. Synch Type Asynchronous
  1068. Usage Type Data
  1069. wMaxPacketSize 0x0308 1x 776 bytes
  1070. bInterval 1
  1071. AudioStreaming Endpoint Descriptor:
  1072. bLength 8
  1073. bDescriptorType 37
  1074. bDescriptorSubtype 1 (EP_GENERAL)
  1075. bmAttributes 0x00
  1076. bmControls 0x00
  1077. bLockDelayUnits 0 Undefined
  1078. wLockDelay 0x0000
  1079. Interface Descriptor:
  1080. bLength 9
  1081. bDescriptorType 4
  1082. bInterfaceNumber 2
  1083. bAlternateSetting 6
  1084. bNumEndpoints 1
  1085. bInterfaceClass 1 Audio
  1086. bInterfaceSubClass 2 Streaming
  1087. bInterfaceProtocol 32
  1088. iInterface 0
  1089. AudioStreaming Interface Descriptor:
  1090. bLength 16
  1091. bDescriptorType 36
  1092. bDescriptorSubtype 1 (AS_GENERAL)
  1093. bTerminalLink 13
  1094. bmControls 0x05
  1095. Active Alternate Setting Control (read-only)
  1096. Valid Alternate Setting Control (read-only)
  1097. bFormatType 1
  1098. bmFormats 0x00000001
  1099. PCM
  1100. bNrChannels 6
  1101. bmChannelConfig 0x0000003f
  1102. Front Left (FL)
  1103. Front Right (FR)
  1104. Front Center (FC)
  1105. Low Frequency Effects (LFE)
  1106. Back Left (BL)
  1107. Back Right (BR)
  1108. iChannelNames 0
  1109. AudioStreaming Interface Descriptor:
  1110. bLength 6
  1111. bDescriptorType 36
  1112. bDescriptorSubtype 2 (FORMAT_TYPE)
  1113. bFormatType 1 (FORMAT_TYPE_I)
  1114. bSubslotSize 4
  1115. bBitResolution 32
  1116. Endpoint Descriptor:
  1117. bLength 7
  1118. bDescriptorType 5
  1119. bEndpointAddress 0x82 EP 2 IN
  1120. bmAttributes 5
  1121. Transfer Type Isochronous
  1122. Synch Type Asynchronous
  1123. Usage Type Data
  1124. wMaxPacketSize 0x0308 1x 776 bytes
  1125. bInterval 1
  1126. AudioStreaming Endpoint Descriptor:
  1127. bLength 8
  1128. bDescriptorType 37
  1129. bDescriptorSubtype 1 (EP_GENERAL)
  1130. bmAttributes 0x00
  1131. bmControls 0x00
  1132. bLockDelayUnits 0 Undefined
  1133. wLockDelay 0x0000
  1134. Interface Descriptor:
  1135. bLength 9
  1136. bDescriptorType 4
  1137. bInterfaceNumber 2
  1138. bAlternateSetting 7
  1139. bNumEndpoints 1
  1140. bInterfaceClass 1 Audio
  1141. bInterfaceSubClass 2 Streaming
  1142. bInterfaceProtocol 32
  1143. iInterface 0
  1144. AudioStreaming Interface Descriptor:
  1145. bLength 16
  1146. bDescriptorType 36
  1147. bDescriptorSubtype 1 (AS_GENERAL)
  1148. bTerminalLink 13
  1149. bmControls 0x05
  1150. Active Alternate Setting Control (read-only)
  1151. Valid Alternate Setting Control (read-only)
  1152. bFormatType 1
  1153. bmFormats 0x00000001
  1154. PCM
  1155. bNrChannels 8
  1156. bmChannelConfig 0x000000ff
  1157. Front Left (FL)
  1158. Front Right (FR)
  1159. Front Center (FC)
  1160. Low Frequency Effects (LFE)
  1161. Back Left (BL)
  1162. Back Right (BR)
  1163. Front Left of Center (FLC)
  1164. Front Right of Center (FRC)
  1165. iChannelNames 0
  1166. AudioStreaming Interface Descriptor:
  1167. bLength 6
  1168. bDescriptorType 36
  1169. bDescriptorSubtype 2 (FORMAT_TYPE)
  1170. bFormatType 1 (FORMAT_TYPE_I)
  1171. bSubslotSize 2
  1172. bBitResolution 16
  1173. Endpoint Descriptor:
  1174. bLength 7
  1175. bDescriptorType 5
  1176. bEndpointAddress 0x82 EP 2 IN
  1177. bmAttributes 5
  1178. Transfer Type Isochronous
  1179. Synch Type Asynchronous
  1180. Usage Type Data
  1181. wMaxPacketSize 0x0308 1x 776 bytes
  1182. bInterval 1
  1183. AudioStreaming Endpoint Descriptor:
  1184. bLength 8
  1185. bDescriptorType 37
  1186. bDescriptorSubtype 1 (EP_GENERAL)
  1187. bmAttributes 0x00
  1188. bmControls 0x00
  1189. bLockDelayUnits 0 Undefined
  1190. wLockDelay 0x0000
  1191. Interface Descriptor:
  1192. bLength 9
  1193. bDescriptorType 4
  1194. bInterfaceNumber 2
  1195. bAlternateSetting 8 //实际16bits
  1196. bNumEndpoints 1
  1197. bInterfaceClass 1 Audio
  1198. bInterfaceSubClass 2 Streaming
  1199. bInterfaceProtocol 32
  1200. iInterface 0
  1201. AudioStreaming Interface Descriptor:
  1202. bLength 16
  1203. bDescriptorType 36
  1204. bDescriptorSubtype 1 (AS_GENERAL)
  1205. bTerminalLink 13
  1206. bmControls 0x05
  1207. Active Alternate Setting Control (read-only)
  1208. Valid Alternate Setting Control (read-only)
  1209. bFormatType 1
  1210. bmFormats 0x00000001
  1211. PCM
  1212. bNrChannels 8
  1213. bmChannelConfig 0x000000ff
  1214. Front Left (FL)
  1215. Front Right (FR)
  1216. Front Center (FC)
  1217. Low Frequency Effects (LFE)
  1218. Back Left (BL)
  1219. Back Right (BR)
  1220. Front Left of Center (FLC)
  1221. Front Right of Center (FRC)
  1222. iChannelNames 0
  1223. AudioStreaming Interface Descriptor:
  1224. bLength 6
  1225. bDescriptorType 36
  1226. bDescriptorSubtype 2 (FORMAT_TYPE)
  1227. bFormatType 1 (FORMAT_TYPE_I)
  1228. bSubslotSize 3
  1229. bBitResolution 24
  1230. Endpoint Descriptor:
  1231. bLength 7
  1232. bDescriptorType 5
  1233. bEndpointAddress 0x82 EP 2 IN
  1234. bmAttributes 5
  1235. Transfer Type Isochronous
  1236. Synch Type Asynchronous
  1237. Usage Type Data
  1238. wMaxPacketSize 0x0308 1x 776 bytes
  1239. bInterval 1
  1240. AudioStreaming Endpoint Descriptor:
  1241. bLength 8
  1242. bDescriptorType 37
  1243. bDescriptorSubtype 1 (EP_GENERAL)
  1244. bmAttributes 0x00
  1245. bmControls 0x00
  1246. bLockDelayUnits 0 Undefined
  1247. wLockDelay 0x0000
  1248. Interface Descriptor:
  1249. bLength 9
  1250. bDescriptorType 4
  1251. bInterfaceNumber 2
  1252. bAlternateSetting 9 //实际8个通道 44.1k采样可用
  1253. bNumEndpoints 1
  1254. bInterfaceClass 1 Audio
  1255. bInterfaceSubClass 2 Streaming
  1256. bInterfaceProtocol 32
  1257. iInterface 0
  1258. AudioStreaming Interface Descriptor:
  1259. bLength 16
  1260. bDescriptorType 36
  1261. bDescriptorSubtype 1 (AS_GENERAL)
  1262. bTerminalLink 13
  1263. bmControls 0x05
  1264. Active Alternate Setting Control (read-only)
  1265. Valid Alternate Setting Control (read-only)
  1266. bFormatType 1
  1267. bmFormats 0x00000001
  1268. PCM
  1269. bNrChannels 6
  1270. bmChannelConfig 0x0000003f
  1271. Front Left (FL)
  1272. Front Right (FR)
  1273. Front Center (FC)
  1274. Low Frequency Effects (LFE)
  1275. Back Left (BL)
  1276. Back Right (BR)
  1277. iChannelNames 0
  1278. AudioStreaming Interface Descriptor:
  1279. bLength 6
  1280. bDescriptorType 36
  1281. bDescriptorSubtype 2 (FORMAT_TYPE)
  1282. bFormatType 1 (FORMAT_TYPE_I)
  1283. bSubslotSize 4
  1284. bBitResolution 32
  1285. Endpoint Descriptor:
  1286. bLength 7
  1287. bDescriptorType 5
  1288. bEndpointAddress 0x82 EP 2 IN
  1289. bmAttributes 5
  1290. Transfer Type Isochronous
  1291. Synch Type Asynchronous
  1292. Usage Type Data
  1293. wMaxPacketSize 0x0308 1x 776 bytes
  1294. bInterval 1
  1295. AudioStreaming Endpoint Descriptor:
  1296. bLength 8
  1297. bDescriptorType 37
  1298. bDescriptorSubtype 1 (EP_GENERAL)
  1299. bmAttributes 0x00
  1300. bmControls 0x00
  1301. bLockDelayUnits 0 Undefined
  1302. wLockDelay 0x0000
  1303. Interface Descriptor:
  1304. bLength 9
  1305. bDescriptorType 4
  1306. bInterfaceNumber 3
  1307. bAlternateSetting 0
  1308. bNumEndpoints 0
  1309. bInterfaceClass 1 Audio
  1310. bInterfaceSubClass 2 Streaming
  1311. bInterfaceProtocol 32
  1312. iInterface 6 LIS_MIIS_8X8_192K
  1313. Interface Descriptor:
  1314. bLength 9
  1315. bDescriptorType 4
  1316. bInterfaceNumber 3
  1317. bAlternateSetting 1
  1318. bNumEndpoints 2
  1319. bInterfaceClass 1 Audio
  1320. bInterfaceSubClass 2 Streaming
  1321. bInterfaceProtocol 32
  1322. iInterface 0
  1323. AudioStreaming Interface Descriptor:
  1324. bLength 16
  1325. bDescriptorType 36
  1326. bDescriptorSubtype 1 (AS_GENERAL)
  1327. bTerminalLink 17
  1328. bmControls 0x05
  1329. Active Alternate Setting Control (read-only)
  1330. Valid Alternate Setting Control (read-only)
  1331. bFormatType 1
  1332. bmFormats 0x00000001
  1333. PCM
  1334. bNrChannels 2
  1335. bmChannelConfig 0x00000003
  1336. Front Left (FL)
  1337. Front Right (FR)
  1338. iChannelNames 0
  1339. AudioStreaming Interface Descriptor:
  1340. bLength 6
  1341. bDescriptorType 36
  1342. bDescriptorSubtype 2 (FORMAT_TYPE)
  1343. bFormatType 1 (FORMAT_TYPE_I)
  1344. bSubslotSize 2
  1345. bBitResolution 16
  1346. Endpoint Descriptor:
  1347. bLength 7
  1348. bDescriptorType 5
  1349. bEndpointAddress 0x04 EP 4 OUT
  1350. bmAttributes 5
  1351. Transfer Type Isochronous
  1352. Synch Type Asynchronous
  1353. Usage Type Data
  1354. wMaxPacketSize 0x0308 1x 776 bytes
  1355. bInterval 1
  1356. AudioStreaming Endpoint Descriptor:
  1357. bLength 8
  1358. bDescriptorType 37
  1359. bDescriptorSubtype 1 (EP_GENERAL)
  1360. bmAttributes 0x00
  1361. bmControls 0x00
  1362. bLockDelayUnits 0 Undefined
  1363. wLockDelay 0x0000
  1364. Endpoint Descriptor:
  1365. bLength 7
  1366. bDescriptorType 5
  1367. bEndpointAddress 0x84 EP 4 IN
  1368. bmAttributes 17
  1369. Transfer Type Isochronous
  1370. Synch Type None
  1371. Usage Type Feedback
  1372. wMaxPacketSize 0x0004 1x 4 bytes
  1373. bInterval 1
  1374. Interface Descriptor:
  1375. bLength 9
  1376. bDescriptorType 4
  1377. bInterfaceNumber 3
  1378. bAlternateSetting 2
  1379. bNumEndpoints 2
  1380. bInterfaceClass 1 Audio
  1381. bInterfaceSubClass 2 Streaming
  1382. bInterfaceProtocol 32
  1383. iInterface 0
  1384. AudioStreaming Interface Descriptor:
  1385. bLength 16
  1386. bDescriptorType 36
  1387. bDescriptorSubtype 1 (AS_GENERAL)
  1388. bTerminalLink 17
  1389. bmControls 0x05
  1390. Active Alternate Setting Control (read-only)
  1391. Valid Alternate Setting Control (read-only)
  1392. bFormatType 1
  1393. bmFormats 0x00000001
  1394. PCM
  1395. bNrChannels 2
  1396. bmChannelConfig 0x00000003
  1397. Front Left (FL)
  1398. Front Right (FR)
  1399. iChannelNames 0
  1400. AudioStreaming Interface Descriptor:
  1401. bLength 6
  1402. bDescriptorType 36
  1403. bDescriptorSubtype 2 (FORMAT_TYPE)
  1404. bFormatType 1 (FORMAT_TYPE_I)
  1405. bSubslotSize 3
  1406. bBitResolution 24
  1407. Endpoint Descriptor:
  1408. bLength 7
  1409. bDescriptorType 5
  1410. bEndpointAddress 0x04 EP 4 OUT
  1411. bmAttributes 5
  1412. Transfer Type Isochronous
  1413. Synch Type Asynchronous
  1414. Usage Type Data
  1415. wMaxPacketSize 0x0308 1x 776 bytes
  1416. bInterval 1
  1417. AudioStreaming Endpoint Descriptor:
  1418. bLength 8
  1419. bDescriptorType 37
  1420. bDescriptorSubtype 1 (EP_GENERAL)
  1421. bmAttributes 0x00
  1422. bmControls 0x00
  1423. bLockDelayUnits 0 Undefined
  1424. wLockDelay 0x0000
  1425. Endpoint Descriptor:
  1426. bLength 7
  1427. bDescriptorType 5
  1428. bEndpointAddress 0x84 EP 4 IN
  1429. bmAttributes 17
  1430. Transfer Type Isochronous
  1431. Synch Type None
  1432. Usage Type Feedback
  1433. wMaxPacketSize 0x0004 1x 4 bytes
  1434. bInterval 1
  1435. Interface Descriptor:
  1436. bLength 9
  1437. bDescriptorType 4
  1438. bInterfaceNumber 3
  1439. bAlternateSetting 3
  1440. bNumEndpoints 2
  1441. bInterfaceClass 1 Audio
  1442. bInterfaceSubClass 2 Streaming
  1443. bInterfaceProtocol 32
  1444. iInterface 0
  1445. AudioStreaming Interface Descriptor:
  1446. bLength 16
  1447. bDescriptorType 36
  1448. bDescriptorSubtype 1 (AS_GENERAL)
  1449. bTerminalLink 17
  1450. bmControls 0x05
  1451. Active Alternate Setting Control (read-only)
  1452. Valid Alternate Setting Control (read-only)
  1453. bFormatType 1
  1454. bmFormats 0x00000001
  1455. PCM
  1456. bNrChannels 2
  1457. bmChannelConfig 0x00000003
  1458. Front Left (FL)
  1459. Front Right (FR)
  1460. iChannelNames 0
  1461. AudioStreaming Interface Descriptor:
  1462. bLength 6
  1463. bDescriptorType 36
  1464. bDescriptorSubtype 2 (FORMAT_TYPE)
  1465. bFormatType 1 (FORMAT_TYPE_I)
  1466. bSubslotSize 4
  1467. bBitResolution 32
  1468. Endpoint Descriptor:
  1469. bLength 7
  1470. bDescriptorType 5
  1471. bEndpointAddress 0x04 EP 4 OUT
  1472. bmAttributes 5
  1473. Transfer Type Isochronous
  1474. Synch Type Asynchronous
  1475. Usage Type Data
  1476. wMaxPacketSize 0x0308 1x 776 bytes
  1477. bInterval 1
  1478. AudioStreaming Endpoint Descriptor:
  1479. bLength 8
  1480. bDescriptorType 37
  1481. bDescriptorSubtype 1 (EP_GENERAL)
  1482. bmAttributes 0x00
  1483. bmControls 0x00
  1484. bLockDelayUnits 0 Undefined
  1485. wLockDelay 0x0000
  1486. Endpoint Descriptor:
  1487. bLength 7
  1488. bDescriptorType 5
  1489. bEndpointAddress 0x84 EP 4 IN
  1490. bmAttributes 17
  1491. Transfer Type Isochronous
  1492. Synch Type None
  1493. Usage Type Feedback
  1494. wMaxPacketSize 0x0004 1x 4 bytes
  1495. bInterval 1
  1496. Device Qualifier (for other device speed): //Device_Qualifier Descriptor
  1497. bLength 10
  1498. bDescriptorType 6
  1499. bcdUSB 2.00
  1500. bDeviceClass 239 Miscellaneous Device
  1501. bDeviceSubClass 2
  1502. bDeviceProtocol 1 Interface Association
  1503. bMaxPacketSize0 64
  1504. bNumConfigurations 1
  1505. Device Status: 0x0001
  1506. Self Powered
USB中文网 2023-01-18 11:10:13 编辑

从这里来看:

  1. AudioControl Interface Descriptor:
  2. bLength 9
  3. bDescriptorType 36
  4. bDescriptorSubtype 1 (HEADER) // Class-Specific AC Interface Header Descriptor
  5. bcdADC 2.00
  6. bCategory 4
  7. wTotalLength 0x00b4 //类特定描述符总长度
  8. bmControls 0x00

你使用的是UAC2.0规范,而不是UAC1.0
UAC2.0规范是从Windows10从1703版本才开始支持UAC2.0,所以windows10 1703之前的版本也只支持UAC1.0。
所以你需要查阅的是UAC2.0的规范文档。
UAC2.0和UAC1.0虽然是版本上的升级,但是改变很大,可以当成是2个规范来对待。