From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5f1d99b2bf9862e6f83063a917487835@granite.cias.osakafu-u.ac.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] VT6306 chip is for OHCI or UHCI? From: Kenji Okamoto Date: Wed, 1 Sep 2004 17:58:51 +0900 In-Reply-To: <0d22d9a426624bb082731fff85cca842@granite.cias.osakafu-u.ac.jp> MIME-Version: 1.0 Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: da838ee2-eacd-11e9-9e20-41e7f4b1d025 After I summed-up the previous results, I noticed myself I may be doing something very stupid. Then, I set on the debug flag of the usb kernel, and found the problem was not the endpoint is for Adaptive, but just on the discrepacy of 2 channels or 8 channels. The present debugging output of term% usb/usbaudio -V -v 50 -d 0xf was much improved, and I feel I may very close to the goal... Anyway, revised results are as foloows, sorry evry one. ----------from here---------- term% usb/usbaudio -V -v 50 -d 0xf pdesc 1.-1 [18] desc 1.-1 [18] 0x01: usb (bcd)0110 class 0 subclass 0 proto 0 [0.0.0] max0 8 vendor 0xd8c product 0x6 device (bcd)0010 man 0 prod 2 serial 0 nconfig 1 pdesc 1.0 [340] desc 1.0 [9] 0x02: config 1: tdlen 340 ninterface 4 iconfig 0 attr 0xa0 power 500mA desc 1.0 [9] 0x04: interface 0: alt 0 nept 0 class 0x1 subclass 0x1 proto 0 [audio.control.0] iinterface 0 desc 1.0 [10] 0x24: 1.1: Class-Specific AC Interface Header Descriptor AudioDeviceClass release (bcd)0100, TotalLength 187, InCollection 2 aInterfaceNr1 1, aInterfaceNr2 2 desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor bTerminalId 1, wTerminalType 0x101 (USB Streaming), bAssocTerminal 0 bNrChannels 8, wChannelConfig 0x63f, iChannelNames 0 iTerminal 0 Audio output unit 1 desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor bTerminalId 4, wTerminalType 0x201 (Microphone), bAssocTerminal 0 bNrChannels 2, wChannelConfig 0x3, iChannelNames 0 iTerminal 0 Device can record from Microphone desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 8 bUnitId 8, bSourceId 4, bControlSize 1 for Record agc control on master channel volume control on channel 1 volume control on channel 2 desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 9 bUnitId 9, bSourceId 4, bControlSize 1 for Record Second feature unit (8, 9) on record mute control on master channel volume control on channel 1 volume control on channel 2 desc 1.0 [25] 0x24: 1.1: Audio Mixer Unit 12 bNrInPins 3, Input Pin 1's UnitID 1, Input Pin 2's UnitID 9, Input Pin 3's UnitID 11, bNrChannels 8, wChannelConfig 0x63f, iChannelNames 0, bmControls 0x000000000000, iMixer 0 Audio Mixer Unit 12 desc 1.0 [16] 0x24: 1.1: Audio Feature Unit 13 bUnitId 13, bSourceId 12, bControlSize 1 for Mixer Unit 12 mute control on master channel volume control on master channel desc 1.0 [9] 0x24: 1.1: Audio Output Terminal Descriptor bTerminalId 3, wTerminalType 0x301 (Speaker), bAssocTerminal 0 bSourceId 13, iTerminal 0 Device can play to Speaker desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 2 bUnitId 2, bSourceId 12, bControlSize 1 for Mixer Unit 12 volume control on channel 1 volume control on channel 2 desc 1.0 [9] 0x24: 1.1: Audio Output Terminal Descriptor bTerminalId 10, wTerminalType 0x101 (USB Streaming), bAssocTerminal 0 bSourceId 7, iTerminal 0 Audio input unit 10 desc 1.0 [10] 0x24: 1.1: Audio Selector Unit 7 bUnitId 7, bNrInPins 4, baSourceIDs: [8, 15, 16, 2] desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor bTerminalId 6, wTerminalType 0x603 (Line connector), bAssocTerminal 0 bNrChannels 2, wChannelConfig 0x3, iChannelNames 0 iTerminal 0 Device can record from Line connector desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 15 bUnitId 15, bSourceId 6, bControlSize 1 for Record Second feature unit (9, 15) on record volume control on channel 1 volume control on channel 2 desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 11 bUnitId 11, bSourceId 6, bControlSize 1 for Record Second feature unit (15, 11) on record mute control on master channel volume control on channel 1 volume control on channel 2 desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor bTerminalId 5, wTerminalType 0x605 (S/PDIF), bAssocTerminal 0 bNrChannels 2, wChannelConfig 0x3, iChannelNames 0 iTerminal 0 Device can record from S/PDIF desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 16 bUnitId 16, bSourceId 5, bControlSize 1 for Record Second feature unit (11, 16) on record mute control on master channel desc 1.0 [9] 0x04: interface 1: alt 0 nept 0 class 0x1 subclass 0x2 proto 0 [audio.stream.0] iinterface 0 desc 1.0 [9] 0x04: interface 1: alt 1 nept 1 class 0x1 subclass 0x2 proto 0 [audio.stream.0] iinterface 0 desc 1.0 [7] 0x24: 1.2: Audio stream for TerminalID 1, delay 1, format_tag 0x1 desc 1.0 [14] 0x24: 1.2: Interface 1, alt 1: 8 channels, 16 bits, discrete frequencies are: 44100 48000 desc 1.0 [9] 0x05: addr 0x06 attrib 0x09 maxpkt 768 interval 1ms [OUT] [Iso] [Adaptive]refresh 0 synchaddress 0 desc 1.0 [7] 0x25: CS_ENDPOINT for attributes 0x1, lockdelayunits 0, lockdelay 0x0, has sampling-frequency control, does not have pitch control desc 1.0 [9] 0x04: interface 2: alt 0 nept 0 class 0x1 subclass 0x2 proto 0 [audio.stream.0] iinterface 0 desc 1.0 [9] 0x04: interface 2: alt 1 nept 1 class 0x1 subclass 0x2 proto 0 [audio.stream.0] iinterface 0 desc 1.0 [7] 0x24: 1.2: Audio stream for TerminalID 10, delay 1, format_tag 0x1 desc 1.0 [14] 0x24: 1.2: Interface 2, alt 1: stereo, 16 bits, discrete frequencies are: 44100 48000 desc 1.0 [9] 0x05: addr 0x85 attrib 0x05 maxpkt 200 interval 1ms [IN] [Iso] [Asynchronous]refresh 0 synchaddress 0 desc 1.0 [7] 0x25: CS_ENDPOINT for attributes 0x1, lockdelayunits 0, lockdelay 0x0, has sampling-frequency control, does not have pitch control desc 1.0 [9] 0x04: interface 3: alt 0 nept 1 class 0x3 subclass 0x0 proto 0 [hid.0.0] iinterface 0 desc 1.0 [9] 0x21: HID (bcd)0100 country 0 nhidclass 1 classdtype 0x22 dlen 50 desc 1.0 [7] 0x05: addr 0x81 attrib 0x03 maxpkt 3 interval 32ms [IN] [Interrupt] Buttons on endpoint 1 Record on endpoint 5 Playback on endpoint 6 n = 0 setcontrol channels: Set alt 1 setcontrol resolution: Set alt 1 setcontrol channels: Set alt 1 setcontrol resolution: Set alt 1 Playback speed control, value 0 Record mute control not settable Record volume control not settable Record bass control not settable Record mid control not settable Record treble control not settable Record equalizer control not settable Record agc control not settable Record delay control not settable Record bassboost control not settable Record loudness control not settable Playback channels control, min 8, max 8, value 8 Playback resolution control, min 16, max 16, value 16 Record speed control, value 44100 Record mute control, min 0, max 0, step 1, value 0 Record volume control, min 0, max 0, step 1, values[1] 0 [2] 0 Playback bass control not settable Playback mid control not settable Playback treble control not settable Playback equalizer control not settable Record agc control, min 0, max 0, step 1, value 0 Playback delay control not settable Playback bassboost control not settable Playback loudness control not settable Record channels control, min 2, max 2, value 2 Record resolution control, min 16, max 16, value 16 Pitch control = ON Setting discreetly variable playback speed to 44100 Setting playback speed to 44100 Hz; speed now 44100 Hz;Configuring playback endpoint for 44100 Hz sent `ep 6 1 w 4 44100' to /dev/usb/0/ctl Setting discreetly variable record speed to 44100 Setting record speed to 44100 Hz; speed now 44100 Hz;Configuring record endpoint for 44100 Hz sent `ep 5 1 r 4 44100' to /dev/usb/0/ctl setcontrol: control 0.1 not settable sending `ep 1 bulk r 1 1' to /dev/usb0/1/ctl buttonproc opening /dev/usb0/1/ep1data term% io:<-Tversion tag 65535 msize 8216 version '9P2000' io:->Rversion tag 65535 msize 4120 version '9P2000' io:<-Tattach tag 12 fid 286 afid -1 uname okamoto aname io:->Rattach tag 12 qid (0000000000000000 0 d) io:<-Twalk tag 12 fid 286 newfid 288 nwname 1 0:audio io:->Rwalk tag 12 nwqid 1 0:(0000000000000004 0 ) io:<-Twalk tag 12 fid 286 newfid 284 nwname 1 0:audioin io:->Rwalk tag 12 nwqid 1 0:(0000000000000005 0 ) term% ls -l /dev (only related examples ) ---w--w--w- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/audio --rw-rw-rw- M 44 okamoto okamoto 0 Sep 1 17:32 /dev/audioctl --r--r--r-- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/audioin --rw-rw-rw- M 44 okamoto okamoto 0 Sep 1 17:32 /dev/audiostat d-r-xr-xr-x U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0 d-r-xr-xr-x U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb1 --rw-rw-rw- M 44 okamoto okamoto 0 Sep 1 17:32 /dev/volume term% ls -l /dev/usb0/1 --rw-rw-rw- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0/1/ctl --r--r--r-- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0/1/ep1data --r--r--r-- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0/1/ep5data ---w--w--w- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0/1/ep6data --rw-rw-rw- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0/1/setup --r--r--r-- U 0 okamoto okamoto 0 Sep 1 17:09 /dev/usb0/1/status term% cat /dev/audioctl channels out 2 8 8 resolution out 16 16 16 speed' speed out 44100 channels out 2 8 8 resolution out 16 16 16 speed in 44100 mute in 0 0 0 1 volume in '0 0' 0 0 1 agc in 0 0 0 1 channels in 2 2 2 resolution in 16 16 16 -----------end here----- Kenji