[問題] USB Audio Interface

看板LinuxDev作者 (ranger)時間10年前 (2015/01/05 10:42), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
請版上先進有相關經驗可以提示我要怎樣走嗎? 謝謝 目前只用到使用者層呼叫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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.14.165.27 ※ 文章網址: http://www.ptt.cc/bbs/LinuxDev/M.1420425767.A.BBD.html
文章代碼(AID): #1KgVedkz (LinuxDev)
文章代碼(AID): #1KgVedkz (LinuxDev)