Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[懇請開示] 想開啟 USB Gadget Drivers (Audio Gadget)

350

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
350
发表于 2016-6-7 15:22:29      11#
在 windows 上用 usbview dump 出來的資訊:

呼喚大神! 懇請開示, 感恩^^

訊息如下
[Port3]  :  USB Composite Device


Device Power State:               PowerDeviceD0

       ---===>Device Information<===---
English product name: "Linux USB Audio Gadget"

ConnectionStatus:                  
Current Config Value:              0x01  -> Device Bus Speed: High
Device Address:                    0x02
Open Pipes:                           0
*!*ERROR:  No open pipes!

          ===>Device Descriptor<===
bLength:                           0x12
bDescriptorType:                   0x01
bcdUSB:                          0x0200
bDeviceClass:                      0x00  -> This is an Interface Class Defined Device
bDeviceSubClass:                   0x00
bDeviceProtocol:                   0x00
bMaxPacketSize0:                   0x40 = (64) Bytes
idVendor:                        0x1D6B = The Linux Foundation
idProduct:                       0x0101
bcdDevice:                       0x0310
iManufacturer:                     0x01
     English (United States)  "Linux 3.10.0 with dwc_otg_pcd"
iProduct:                          0x02
     English (United States)  "Linux USB Audio Gadget"
iSerialNumber:                     0x00
bNumConfigurations:                0x01

       ---===>Full Configuration Descriptor<===---

          ===>Configuration Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x02
wTotalLength:                    0x006E  -> Validated
bNumInterfaces:                    0x02
bConfigurationValue:               0x01
iConfiguration:                    0x00
bmAttributes:                      0xC0  -> Self Powered
MaxPower:                          0xFA = 500 mA

          ===>Interface Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x04
bInterfaceNumber:                  0x00
bAlternateSetting:                 0x00
bNumEndpoints:                     0x00
bInterfaceClass:                   0x01  -> Audio Interface Class
bInterfaceSubClass:                0x01  -> Audio Control Interface SubClass
bInterfaceProtocol:                0x00
iInterface:                        0x00

          ===>Audio Control Interface Header Descriptor<===
bLength:                           0x0A
bDescriptorType:                   0x24
bDescriptorSubtype:                0x01
bcdADC:                          0x0100
wTotalLength:                    0x0028
bInCollection:                     0x02
baInterfaceNr[1]:                  0x00
baInterfaceNr[2]:                  0x01

          ===>Audio Control Input Terminal Descriptor<===
bLength:                           0x0C
bDescriptorType:                   0x24
bDescriptorSubtype:                0x02
bTerminalID:                       0x01
wTerminalType:                   0x0101 (USB streaming)
bAssocTerminal:                    0x00
bNrChannels:                       0x02
wChannelConfig:                  0x0003
iChannelNames:                     0x00
iTerminal:                         0x00

          ===>Audio Control Output Terminal Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x24
bDescriptorSubtype:                0x03
bTerminalID:                       0x03
wTerminalType:                   0x0301 (Speaker)
bAssocTerminal:                    0x02
bSourceID:                         0x02
iTerminal:                         0x00

          ===>Audio Control Feature Unit Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x24
bDescriptorSubtype:                0x06
bUnitID:                           0x02
bSourceID:                         0x01
bControlSize:                      0x02
bmaControls[0]:                    03 00
iFeature:                          0x00

          ===>Interface Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x04
bInterfaceNumber:                  0x01
bAlternateSetting:                 0x00
bNumEndpoints:                     0x00
bInterfaceClass:                   0x01  -> Audio Interface Class
bInterfaceSubClass:                0x02  -> Audio Streaming Interface SubClass
bInterfaceProtocol:                0x00
iInterface:                        0x00

          ===>Interface Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x04
bInterfaceNumber:                  0x01
bAlternateSetting:                 0x01
bNumEndpoints:                     0x01
bInterfaceClass:                   0x01  -> Audio Interface Class
bInterfaceSubClass:                0x02  -> Audio Streaming Interface SubClass
bInterfaceProtocol:                0x00
iInterface:                        0x00

          ===>Audio Streaming Class Specific Interface Descriptor<===
bLength:                           0x07
bDescriptorType:                   0x24
bDescriptorSubtype:                0x01
bTerminalLink:                     0x01
bDelay:                            0x01
wFormatTag:                      0x0001 (PCM)

          ===>Audio Streaming Format Type Descriptor<===
bLength:                           0x0B
bDescriptorType:                   0x24
bDescriptorSubtype:                0x02
bFormatType:                       0x01
bNrChannels:                       0x02
bSubframeSize:                     0x02
bBitResolution:                    0x10
bSamFreqType:                      0x01
tSamFreq[1]:                   0x00BB80 (48000 Hz)

          ===>Endpoint Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x05
bEndpointAddress:                  0x02  -> Direction: OUT - EndpointID: 2
bmAttributes:                      0x09  -> Isochronous Transfer Type, Synchronization Type = Adaptive, Usage Type = Data Endpoint
wMaxPacketSize:                  0x00C8 = 1 transactions per microframe, 0xC8 max bytes
wInterval:                       0x0004
bSyncAddress:                      0x00

          ===>Audio Streaming Class Specific Audio Data Endpoint Descriptor<===
bLength:                           0x07
bDescriptorType:                   0x25
bDescriptorSubtype:                0x01
bmAttributes:                      0x01
bLockDelayUnits:                   0x01
wLockDelay:                      0x0001
回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表