[问题] USB Audio Interface

楼主: newranger (ranger)   2015-01-05 10:42:44
请版上先进有相关经验可以提示我要怎样走吗?
谢谢
目前只用到使用者层呼叫libusb, 将手机上的的音乐借由USB传送AudioStreaming,
如果想让手机歌曲从电脑上发声的话
是要研究AudioStreaming写一个Driver?
还是想办法把AudioStreaming导到另一个USB声卡耳机, 会比较简单?
其USB资讯如下:
Get Descriptor VID:0d8c, PID:000e (USB 声卡)
Get Descriptor VID:18d1, PID:2d02 (安卓手机)
bDescriptorType:1 (Device 1)
bDeviceClass:0
bDeviceSubClass:0
bNumConfigurations:1
bDescriptorType:2 (Config 0)
bConfigurationValue:1
iConfiguration:0
bNumInterfaces:2
bDescriptorType:4 (Interface 0, 备注)
bInterfaceNumber:0
bInterfaceClass:1
bInterfaceSubClass:1
bNumEndpoints:0
bDescriptorType:4 (Interface 1, AudioStreaming)
bInterfaceNumber:1
bInterfaceClass:1
bInterfaceSubClass:2
bNumEndpoints:0
备注: 0x24描述元如下:
[ a]: len
[24]: audio
[ 1]: audio control header
[ 0][ 1]: audio Device Class v1.00
[28][ 0]: total len
[ 2]: InCollection: AudioStreaming interface
[ 0]: AS #1 id AudioStreaming interface 0 belongs to this AudioControl
interface
[ 1]: AS #2 id AudioStreaming interface 1 belongs to this AudioControl
interface
[ c]: len
[24]: audio
[ 2]: Input Terminal
[ 1]: TerminalID
[ 1][ 2]: TerminalType:USB Microphone
[ 0]: AssocTerminal
[ 2]: NrChannels:2 channel
[ 3][ 0]: ChannelConfig:Left Front,Right Front,
[ 0]: ChannelName String
[ 0]: Terminal String
[ 9]: len
[24]: audio
[ 3]: Output Terminal
[ 3]: TerminalID
[ 1][ 1]: USB Streaming
[ 2]: AssocTerminal:ID 2
[ 2]: SourceID:2 #Feature UNIT
[ 0]: Terminal String
[ 9]: len
[24]: audio
[ 6]: Feature Unit
[ 2]: UnitID
[ 1]: SourceID
[ 2][ 0][ 0][ 0]: Control Bitmap

Links booklink

Contact Us: admin [ a t ] ucptt.com