9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] VT6306 chip is for OHCI or UHCI?
@ 2004-08-24  3:13 Kenji Okamoto
  0 siblings, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-24  3:13 UTC (permalink / raw)
  To: okamoto, 9fans

Please replace usb/usbaudio part by this, sorry.

Kenji

-----from here------
term% usb/usbaudio -V -d 1 -v x
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 aInterfaceNr 1

desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor
	bTerminalId 1, wTerminalType 0x101 (USB Streaming), bAssocTerminal 0 bNrChannels 8, wChannelConfig 1599, iChannelNames 0 iTerminal 0
Audio output unit 1

desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor
	bTerminalId 4, wTerminalType 0x201 (<unnamed>), bAssocTerminal 0 bNrChannels 2, wChannelConfig 3, iChannelNames 0 iTerminal 0
Device can record from <unnamed>

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

desc 1.0 [16] 0x24: 1.1: Audio Feature Unit 13	bUnitId 13, bSourceId 12, bControlSize 1
, not known what for
	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

desc 1.0 [10] 0x24: 1.1: Audio Feature Unit 2	bUnitId 2, bSourceId 12, bControlSize 1
, not known what for
	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
Device can play to USB Streaming

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 3, 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 (<unnamed>), bAssocTerminal 0 bNrChannels 2, wChannelConfig 3, iChannelNames 0 iTerminal 0
Device can record from <unnamed>

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
usb/usbaudio: Can't configure playout for 44100 or 48000 Hz
----end here----



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-10  3:03           ` Kenji Okamoto
@ 2004-09-10 10:36             ` Bruce Ellis
  0 siblings, 0 replies; 23+ messages in thread
From: Bruce Ellis @ 2004-09-10 10:36 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

berg is good.  dump a prokofiev piano concerto on it.

Kenji Okamoto wrote:

>>Ah, I've just out of listening Glenn Gould of 1981.
>>I felt he is really great! from this USB audio device!
> 
> 
> Today, I tried strings music, Mozart's string quartet by Alban berg, 
> and also found I can listen this kind of music from this device.
> I have been not fond of doing such on internal PC sound
> device ( in ths case, Via's for Linux).
> 
> Now trying Uchida and Tate's Piano cencerto of Mozart.   Yes, I'm
> doing hacking, and it needs more.   However, I'm now enjoying
> music from this USB audio device.☺
> 
> Kenji


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-09  9:48         ` Kenji Okamoto
@ 2004-09-10  3:03           ` Kenji Okamoto
  2004-09-10 10:36             ` Bruce Ellis
  0 siblings, 1 reply; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-10  3:03 UTC (permalink / raw)
  To: 9fans

> Ah, I've just out of listening Glenn Gould of 1981.
> I felt he is really great! from this USB audio device!

Today, I tried strings music, Mozart's string quartet by Alban berg, 
and also found I can listen this kind of music from this device.
I have been not fond of doing such on internal PC sound
device ( in ths case, Via's for Linux).

Now trying Uchida and Tate's Piano cencerto of Mozart.   Yes, I'm
doing hacking, and it needs more.   However, I'm now enjoying
music from this USB audio device.☺

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-09  9:06       ` Kenji Okamoto
@ 2004-09-09  9:48         ` Kenji Okamoto
  2004-09-10  3:03           ` Kenji Okamoto
  0 siblings, 1 reply; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-09  9:48 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

Ah, I've just out of listening Glenn Gould of 1981.
I felt he is really great! from this USB audio device!
Audio is very nice, because we can meet 1981 Gould,
young Paul, and John Lennon!
Ilike this device now.

>three output
>jacks for various speakers

Those are four, Front(2), Rear(2), Soround(2), Center/SuperWoofer.
Probably, I'll never use them other than two Front speakers...
I may have spoken too much...

Kenji

[-- Attachment #2: Type: message/rfc822, Size: 3453 bytes --]

From: Kenji Okamoto <okamoto@granite.cias.osakafu-u.ac.jp>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] VT6306 chip is for OHCI or UHCI?
Date: Thu, 9 Sep 2004 18:06:40 +0900
Message-ID: <23522f03e1b70b9926f6d405992d3ca8@granite.cias.osakafu-u.ac.jp>

> Sound quality?  Not so good, better
> than internal SB16 compatible card.☺

Hmm, it's not so fair.  This USB audio device does better
job for a piano music, because it makes too large sound
suddenly.   Even in such music, USB audio seems to do 
better job to me.   I don't want to compare it with my
home multi-channels tube audio system though.☺

Kenji

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-09  8:00     ` Kenji Okamoto
  2004-09-09  8:15       ` Kenji Okamoto
@ 2004-09-09  9:06       ` Kenji Okamoto
  2004-09-09  9:48         ` Kenji Okamoto
  1 sibling, 1 reply; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-09  9:06 UTC (permalink / raw)
  To: 9fans

> Sound quality?  Not so good, better
> than internal SB16 compatible card.☺

Hmm, it's not so fair.  This USB audio device does better
job for a piano music, because it makes too large sound
suddenly.   Even in such music, USB audio seems to do 
better job to me.   I don't want to compare it with my
home multi-channels tube audio system though.☺

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-09  8:00     ` Kenji Okamoto
@ 2004-09-09  8:15       ` Kenji Okamoto
  2004-09-09  9:06       ` Kenji Okamoto
  1 sibling, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-09  8:15 UTC (permalink / raw)
  To: 9fans

> optical in/out, 2 mic input, a stereo line jack, 

a stereo line in jack

The box has four buttons on its top face, volume +/-
and Play/Rec Mute.

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-01  8:58   ` Kenji Okamoto
  2004-09-02  8:21     ` Kenji Okamoto
@ 2004-09-09  8:00     ` Kenji Okamoto
  2004-09-09  8:15       ` Kenji Okamoto
  2004-09-09  9:06       ` Kenji Okamoto
  1 sibling, 2 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-09  8:00 UTC (permalink / raw)
  To: 9fans

I got music from this CM106F chip USB audio device now!
I coundn't stop to write this here.  This is my summer vacation's
hacking result of this year.

I have still many things to be fixed, however, I think I got it
to make work for me.   Sound quality?  Not so good, better
than internal SB16 compatible card.☺

The device I'm using here is composed of only one chip
called CM106F, and connectors, which include S/PDIF
optical in/out, 2 mic input, a stereo line jack, three output
jacks for various speakers, and a jack for headphone, and
of course a USB connector.   The name of the device is
Kuro Sound(玄音) in Japan.  I don't know what is it called
outside.   However, you don't worry about it, because its
component is only a chip, called CM106F.

Kenji

PS. Sape, I'll send you my update soon.



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-01  8:58   ` Kenji Okamoto
@ 2004-09-02  8:21     ` Kenji Okamoto
  2004-09-09  8:00     ` Kenji Okamoto
  1 sibling, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-02  8:21 UTC (permalink / raw)
  To: 9fans

> I feel I may very close to the goal...

It's very far from here to the goal, if any.
I wonder why people want such many channels for audio listening.
This makes very complicated topology, and then, hard to code them, 
and I'm going to abandon it. got tired!

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-09-01  6:06 ` Kenji Okamoto
@ 2004-09-01  8:58   ` Kenji Okamoto
  2004-09-02  8:21     ` Kenji Okamoto
  2004-09-09  8:00     ` Kenji Okamoto
  0 siblings, 2 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-01  8:58 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-23  7:56 Kenji Okamoto
  2004-08-23 15:00 ` Sape Mullender
@ 2004-09-01  6:06 ` Kenji Okamoto
  2004-09-01  8:58   ` Kenji Okamoto
  1 sibling, 1 reply; 23+ messages in thread
From: Kenji Okamoto @ 2004-09-01  6:06 UTC (permalink / raw)
  To: 9fans

> I got today a USB2.0/IEE1394 interface card probably Japanese local
> card, named IFC-PCI7IU2, which is claimed by the user interface to be
> VIA OHCI Compliant.   The card uses VT6306 and VT6212 chip.

And I bought USB sound device named HCMI-106, composed of only
one chip named CM106-F.

I have a serious problem how to set Adaptive USB Stream Out, or just reduse
that function to ordinal synchronous stream, say not 
desc 1.0 [9] 0x05: addr 0x06 attrib 0x09 maxpkt 768 interval 1ms [OUT] [Iso] [Adaptive]refresh 0 synchaddress 0
but just to
desc 1.0 [9] 0x05: addr 0x06 attrib 0x09 maxpkt 768 interval 1ms [OUT] [Iso] refresh 0 synchaddress 0

At last, no it doesn't work, just make a very short sound at once when
some sound data were put to /dev/audio.

If anyone has any comments on this result, please don't hesitate to mention
it.☺

Kenji

------------------------cut here-------------------------------
The Topology of the controls of this chip is as follows:

<<< Topology of Selector >>>

=======       -----------------
| Mic (4) |-->| agc volume R/L (8) |  ---+         -------------
=======       -----------------         |         |                           |
                                                                      ---o | (Pin1)                |
=========       --------------                     |                           |             ================
| LineIn (6) |-->| volume R/L (15) |--------o| (Pin2)                |             |                                   |
=========       --------------                     |    Selector (7)   |----->| USB Streaming Out |
                                                                       ---o| (Pin3)                |             |       (10)                     |
==========      ---------------        |         |                          |              ================
| S/PDIF (5) |-->| master mute (16) |---+        |                           |
==========      ---------------            +o | (Pin4)                |
                                                                          |     -------------
----------      --------------              |
| Mixer (12) |-->| volume(R/L) (2) |------+
----------      --------------



<<<Topology of Mixer >>>

===============                                                                                 --------------
| USB Stream In (1) |-----------+                                            +-->| volume(R/L) (2) |---->Selector No.4 pin
===============                           |          -----------         |        --------------
                                                             +-->|                        |----+
=======           --------------            |                        |
| Mic (4) |-----| master mute (9) |---->|   MIXER (12)  |           |----------------------        ========
=======           --------------            |                        |---->| master mute(Play) (13)       |         | Speaker |
                                                               +-> |                       |            |  probably PlayMute button |--->|   (3)       |
=========        ---------------   |       -----------          | on the case                           |         ========
| LineIn (6) |---| master mute (11) |-+                                           ----------------------
=========        ---------------



==========
| Terminal    |
|   (Unit No)  |  this is #12 here.
==========

------------
| Feature Unit   |
|   (Unit No.)     |  This is #7 here.
------------

All the names of the Units/Terminals are as foloows:
<<<Descriptions gotten from the pdesc() >>>

UnitId	Description	  	Terminal Type			Audio Feature	other description
-------------------------------------------------------------------------------------------------
1		Terminal Input		0x101(USB Stream)					This is Audio Output Unit 1
2		Audio Feature							MIXER		volume control for channel 1 and 2
3		Terminal Output	0x301(Speaker)
4		Terminal Input		0x201(Mic)
5		Terminal Input		0x605(S/PDIF)						for record
6		Terminal Input		0x603(Line)						for record
7		Audio Selector							[8, 15, 16, 2]	select record input from Mic, Line, S/PDIF or MIXER
8		Audio Feature							agc control	for Mic input
9		Audio Feature							mute control	for Mic input
10		Terminal Output	0x101(USB Stream)					This is Audio Input Unit 10
11		Audio Feature							mute+volume	for Line Connector
12		Audio Mixer										mix audio input
13		Audio Feature							mute+volume	for Audio Mixer input
14		not implemented
15		Audio Feature							volume control	for Line Connector
16		Audio Feature							mute control	for S/PDIF
---------------------------------------------------------------------------------------------------
<<<Audio Selector (UnitID 7)>>>

	Audio Feature Unit		bSouceId (Source device)
-----------------------------------------------
		2				12 (Mixer)
		8				4   (Microphone)
		15				6   (Line Connector)
		16				5  (S/PDIF)
------------------------------------------------

UnitID 2: not known what for mute/volume control on master channel.
UnitID 13: ditto.

And the usb/usbaudio -V -v 50 -d 0xf output and some else are as follows:

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 44100
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 bulk w 1 1' 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% 

term% ls -l /dev/usb0/1
--rw-rw-rw- U 0 okamoto okamoto 0 Aug 16 17:35 /dev/usb0/1/ctl
--r--r--r-- U 0 okamoto okamoto 0 Aug 16 17:35 /dev/usb0/1/ep1data
--r--r--r-- U 0 okamoto okamoto 0 Aug 16 17:35 /dev/usb0/1/ep5data
--r--r--r-- U 0 okamoto okamoto 0 Aug 16 17:35 /dev/usb0/1/ep6data
--rw-rw-rw- U 0 okamoto okamoto 0 Aug 16 17:35 /dev/usb0/1/setup
--r--r--r-- U 0 okamoto okamoto 0 Aug 16 17:35 /dev/usb0/1/status


term% ls -l /dev  (examples)
--rw-rw-r-- P  0 okamoto okamoto       0 Aug 16 17:35 /dev/archctl
--r--r--r-- U  0 okamoto okamoto       0 Aug 16 17:35 /dev/audio
--rw-rw-rw- M 37 okamoto okamoto       0 Aug 30 15:34 /dev/audioctl
--r--r--r-- U  0 okamoto okamoto       0 Aug 16 17:35 /dev/audioin
--rw-rw-rw- M 37 okamoto okamoto       0 Aug 30 15:34 /dev/audiostat
--rw------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/mouse
--rw-rw-rw- m  0 okamoto okamoto       0 Aug 16 17:35 /dev/mouse
--r-------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/screen
--rw-rw-rw- M 37 okamoto okamoto       0 Aug 30 15:34 /dev/volume
--rw------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/wctl
--rw------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/wdir
--r-------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/window
--r-------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/winid
--r-------- M 35 okamoto okamoto       0 Aug 30 15:35 /dev/winname
d-r-x------ M 35 okamoto okamoto       0 Aug 30 15:35 /dev/wsys
--r--r--r-- c  0 okamoto okamoto       0 Aug 16 17:35 /dev/zero



term% cat /dev/audioctl
volume out 0
channels out 8 8 8
resolution out 1'
speed out 44100
volume out 0
channels out 8 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
term% 

-------------end here---------------



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24  6:53   ` Kenji Okamoto
  2004-08-24  7:17     ` Kenji Okamoto
@ 2004-08-25  4:44     ` Kenji Okamoto
  1 sibling, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-25  4:44 UTC (permalink / raw)
  To: 9fans

>> If it does, then I suspect the card also implements USB1
>> and UHCI for backward compatibility.
>
> Probably silently.  There is no such discription on the manual.

This card has following devices:

1106/3038      VIA VT82xxxxx UHCI USB1.1
1033/0035:    NEC USB PCI-USB OHCI
1033/00E0:    NEC USB2.0

So, the first device is now working.

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-25  2:00       ` Kenji Okamoto
@ 2004-08-25  3:06         ` Sape Mullender
  0 siblings, 0 replies; 23+ messages in thread
From: Sape Mullender @ 2004-08-25  3:06 UTC (permalink / raw)
  To: 9fans

> Indeed, it went fine apparently, but the binded /dev/audioctl, /dev/audiostat
> /dev/volume didn't work. ☺

Try writing to the appropriate /dev/usb?/?/ep?data.

It may be the case that the audio device isn't initialized properly because the
speed isn't set.  I've no idea what you have to do to get it set.

Anyway, if data gets consumed by /dev/usb?/?/ep?data, but no sounds happen,
then you may have to find out how to program the mixer or the selector.
You could time a
	cp pcm-file /dev/usb?/?/ep?data
to measure the data rate and verify whether the setting is 44100 or 48000.

(I'm just telling you what I did in the past to debug these devices).

	Sape



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24 14:07     ` Sape Mullender
  2004-08-25  0:23       ` Kenji Okamoto
  2004-08-25  1:27       ` Kenji Okamoto
@ 2004-08-25  2:00       ` Kenji Okamoto
  2004-08-25  3:06         ` Sape Mullender
  2 siblings, 1 reply; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-25  2:00 UTC (permalink / raw)
  To: 9fans

> I would try to ignore that message for now and see if it works at all

I tried this, and got failed result.
Indeed, it went fine apparently, but the binded /dev/audioctl, /dev/audiostat
/dev/volume didn't work. ☺

I'll try more what is happening here.

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24 14:07     ` Sape Mullender
  2004-08-25  0:23       ` Kenji Okamoto
@ 2004-08-25  1:27       ` Kenji Okamoto
  2004-08-25  2:00       ` Kenji Okamoto
  2 siblings, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-25  1:27 UTC (permalink / raw)
  To: 9fans

> I've had some struggles with this.  According to the specs, one sets the
> playout speed by putting the number 44100 (or some other number of course)
> in a control message to set speed.  I found a few devices with discrete speed
> settings (the one you have has these) where, instead of writing the speed,
> you have to write the number of the setting (i.e., 0, 1, 2, 3, ... or just 0 or 1
> in your case).  I attempt both and, if both fail, I print that message.

In my case, all the buf[0] to buf[2] values equal to zero from the returned value
from setupreply() in setspeed() in usbaudioctl.c.   This is strange to me.

> I would try to ignore that message for now and see if it works at all

I'll try.

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-25  0:23       ` Kenji Okamoto
@ 2004-08-25  1:02         ` Sape Mullender
  0 siblings, 0 replies; 23+ messages in thread
From: Sape Mullender @ 2004-08-25  1:02 UTC (permalink / raw)
  To: 9fans

> Thanks Sape for your kind comment.

Well, I'm glad there are people out there helping with Plan 9.  Thank YOU.

> This time, my case is at now, however, related to the number of
> channels, 8 (7.1) for this case, but hard coded as 2 in the source.
> After solving this, I may touch the problem you encountered.

Yep, in theory you can have mutiple input and multiple output audio streams.
I never went there; it's hard enough as it is.  FIguring out from the descriptors how
a device is configured is pure AI.  (proof below in what you just discovered :-)

> By the way, I learned somewhat so far:
>
>>desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor
>>	bTerminalId 4, wTerminalType 0x201 (<unnamed>), bAssocTerminal >0 bNrChannels 2, wChannelConfig 3, iChannelNames 0 iTerminal 0
>>Device can record from <unnamed>
>
> This 0x201 must be microphone.

Very possible.  I'll look in the standards docs tomorrow to see if I can find what
0x201 and 0x605 mean (probably they're undefined -- I must have typed the names
in for the ones that were defined).

>>desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor
>>	bTerminalId 5, wTerminalType 0x605 (<unnamed>), bAssocTerminal >0 bNrChannels 2, wChannelConfig 3, iChannelNames 0 iTerminal 0
>>Device can record from <unnamed>
>
> This 0x605 may be S/PDIF...  This device has S/PDIF input and output for
> light connectors.   Unfortunately, this device has no CD input connector,
> which may make me to forget internal DVD drive of the desk top?

Your device also has a mixer (if I remember a previous message correctly)
This may take a number of inputs or outputs and connect them together.

	Sape



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24 14:07     ` Sape Mullender
@ 2004-08-25  0:23       ` Kenji Okamoto
  2004-08-25  1:02         ` Sape Mullender
  2004-08-25  1:27       ` Kenji Okamoto
  2004-08-25  2:00       ` Kenji Okamoto
  2 siblings, 1 reply; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-25  0:23 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

Thanks Sape for your kind comment.
This time, my case is at now, however, related to the number of
channels, 8 (7.1) for this case, but hard coded as 2 in the source.
After solving this, I may touch the problem you encountered.

By the way, I learned somewhat so far:

>desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor
>	bTerminalId 4, wTerminalType 0x201 (<unnamed>), bAssocTerminal >0 bNrChannels 2, wChannelConfig 3, iChannelNames 0 iTerminal 0
>Device can record from <unnamed>

This 0x201 must be microphone.

>desc 1.0 [12] 0x24: 1.1: Audio Input Terminal Descriptor
>	bTerminalId 5, wTerminalType 0x605 (<unnamed>), bAssocTerminal >0 bNrChannels 2, wChannelConfig 3, iChannelNames 0 iTerminal 0
>Device can record from <unnamed>

This 0x605 may be S/PDIF...  This device has S/PDIF input and output for
light connectors.   Unfortunately, this device has no CD input connector,
which may make me to forget internal DVD drive of the desk top?

Kenji

[-- Attachment #2: Type: message/rfc822, Size: 3921 bytes --]

From: Sape Mullender <sape@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] VT6306 chip is for OHCI or UHCI?
Date: Tue, 24 Aug 2004 10:07:19 -0400
Message-ID: <83c238fa25c5eab43cf68002bd9c7437@plan9.bell-labs.com>

> I got a USB audio interface, too for that USB card, the name of which
> is HCMI-106, named as 玄音(gen-on) probably Japanese local, too.
> It's not included in your compatible list of course.
> 
> It has problem just now, getting the error message of
> "Can't configure playout for 44000 or 48000 Hz".

I've had some struggles with this.  According to the specs, one sets the
playout speed by putting the number 44100 (or some other number of course)
in a control message to set speed.  I found a few devices with discrete speed
settings (the one you have has these) where, instead of writing the speed,
you have to write the number of the setting (i.e., 0, 1, 2, 3, ... or just 0 or 1
in your case).  I attempt both and, if both fail, I print that message.

I would try to ignore that message for now and see if it works at all

	Sape

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24  0:57   ` Kenji Okamoto
  2004-08-24  3:13     ` Kenji Okamoto
@ 2004-08-24 14:07     ` Sape Mullender
  2004-08-25  0:23       ` Kenji Okamoto
                         ` (2 more replies)
  1 sibling, 3 replies; 23+ messages in thread
From: Sape Mullender @ 2004-08-24 14:07 UTC (permalink / raw)
  To: 9fans

> I got a USB audio interface, too for that USB card, the name of which
> is HCMI-106, named as 玄音(gen-on) probably Japanese local, too.
> It's not included in your compatible list of course.
> 
> It has problem just now, getting the error message of
> "Can't configure playout for 44000 or 48000 Hz".

I've had some struggles with this.  According to the specs, one sets the
playout speed by putting the number 44100 (or some other number of course)
in a control message to set speed.  I found a few devices with discrete speed
settings (the one you have has these) where, instead of writing the speed,
you have to write the number of the setting (i.e., 0, 1, 2, 3, ... or just 0 or 1
in your case).  I attempt both and, if both fail, I print that message.

I would try to ignore that message for now and see if it works at all

	Sape



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24  6:53   ` Kenji Okamoto
@ 2004-08-24  7:17     ` Kenji Okamoto
  2004-08-25  4:44     ` Kenji Okamoto
  1 sibling, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-24  7:17 UTC (permalink / raw)
  To: 9fans

>> Does it work too?
>
> I tested by your older source for usb driver, and confirmed
> it works fine.

Oops, it's for Richard's usbstorage not usbaudio.

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-23 15:00 ` Sape Mullender
  2004-08-24  0:57   ` Kenji Okamoto
@ 2004-08-24  6:53   ` Kenji Okamoto
  2004-08-24  7:17     ` Kenji Okamoto
  2004-08-25  4:44     ` Kenji Okamoto
  1 sibling, 2 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-24  6:53 UTC (permalink / raw)
  To: 9fans

> Does it work too?

I tested by your older source for usb driver, and confirmed
it works fine.

> If it does, then I suspect the card also implements USB1
> and UHCI for backward compatibility.

Probably silently.  There is no such discription on the manual.

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-24  0:57   ` Kenji Okamoto
@ 2004-08-24  3:13     ` Kenji Okamoto
  2004-08-24 14:07     ` Sape Mullender
  1 sibling, 0 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-24  3:13 UTC (permalink / raw)
  To: 9fans

For someone's convenience, who are seeking uhci addon USB card,
and failed so often.☺   I attached the usd/usbd -v -d and usb/usbaudio -V -v x
output using the VT6303 'OHCI programming interfaceed' card and an USB audio 
named HCMI-106 here.

-----from here------
term% usb1/0: port 1 detached
usbd: usb1/0: port 1 empty
usbd: usb1/0: port 1 attached
usb1/0.1 status 0x3
enabling port usb1/0.1
usb1/0.1 status now 0x3
usbd: usb1/0: set speed high
usbd: usb1/1: set speed high
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: (unknown type) 24 01 00 01 bb 00 02 01 02
desc 1.0 [12] 0x24: (unknown type) 24 02 01 01 01 00 08 3f 06 00 00
desc 1.0 [12] 0x24: (unknown type) 24 02 04 01 02 00 02 03 00 00 00
desc 1.0 [10] 0x24: (unknown type) 24 06 08 04 01 40 02 02 00
desc 1.0 [10] 0x24: (unknown type) 24 06 09 04 01 01 02 02 00
desc 1.0 [25] 0x24: (unknown type) 24 04 0c 03 01 09 0b 08 3f 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00
desc 1.0 [16] 0x24: (unknown type) 24 06 0d 0c 01 03 00 00 00 00 00 00 00 00 00
desc 1.0 [9] 0x24: (unknown type) 24 03 03 01 03 00 0d 00
desc 1.0 [10] 0x24: (unknown type) 24 06 02 0c 01 00 02 02 00
desc 1.0 [9] 0x24: (unknown type) 24 03 0a 01 01 00 07 00
desc 1.0 [10] 0x24: (unknown type) 24 05 07 04 08 0f 10 02 00
desc 1.0 [12] 0x24: (unknown type) 24 02 06 03 06 00 02 03 00 00 00
desc 1.0 [10] 0x24: (unknown type) 24 06 0f 06 01 00 02 02 00
desc 1.0 [10] 0x24: (unknown type) 24 06 0b 06 01 01 02 02 00
desc 1.0 [12] 0x24: (unknown type) 24 02 05 05 06 00 02 03 00 00 00
desc 1.0 [10] 0x24: (unknown type) 24 06 10 05 01 01 00 00 00
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: (unknown type) 24 01 01 01 01 00
desc 1.0 [14] 0x24: (unknown type) 24 02 01 08 02 10 02 44 ac 00 80 bb 00
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: (unknown type) 25 01 01 00 00 00
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: (unknown type) 24 01 0a 01 01 00
desc 1.0 [14] 0x24: (unknown type) 24 02 01 02 02 10 02 44 ac 00 80 bb 00
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: (unknown type) 25 01 01 00 00 00
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: (unknown type) 21 00 01 00 01 22 32 00
desc 1.0 [7] 0x05: addr 0x81 attrib 0x03 maxpkt 3 interval 32ms [IN] [Interrupt]
class 7 0 0x000101
class 7 1 0x000003
class 7 5 0x000201
class 7 6 0x000201
usbd: usb1/0.1: 1: not hub, high speed

term% usb/usbaudio -v x -V
Audio output unit 1
Device can record from <unnamed>
Audio Feature Unit 8 for Record
	agc control on master channel
	volume control on channel 1
	volume control on channel 2
Audio Feature Unit 9 for Record
Second feature unit (8, 9) on record
	mute control on master channel
	volume control on channel 1
	volume control on channel 2
Audio Mixer Unit 12
Audio Feature Unit 13, not known what for
	mute control on master channel
	volume control on master channel
Audio Feature Unit 2, not known what for
	volume control on channel 1
	volume control on channel 2
Audio input unit 10
Device can play to USB Streaming
Audio Selector Unit 7
Device can record from Line connector
Audio Feature Unit 15 for Record
Second feature unit (9, 15) on record
	volume control on channel 1
	volume control on channel 2
Audio Feature Unit 11 for Record
Second feature unit (15, 11) on record
	mute control on master channel
	volume control on channel 1
	volume control on channel 2
Device can record from <unnamed>
Audio Feature Unit 16 for Record
Second feature unit (11, 16) on record
	mute control on master channel
Interface 1, alt 1: 8 channels, 16 bits, discrete frequencies are: 44100 48000
Interface 2, alt 1: stereo, 16 bits, discrete frequencies are: 44100 48000
Buttons on endpoint 1
Record on endpoint 5
Playback on endpoint 6
usb/usbaudio: Can't configure playout for 44100 or 48000 Hz
----end here----



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-23 15:00 ` Sape Mullender
@ 2004-08-24  0:57   ` Kenji Okamoto
  2004-08-24  3:13     ` Kenji Okamoto
  2004-08-24 14:07     ` Sape Mullender
  2004-08-24  6:53   ` Kenji Okamoto
  1 sibling, 2 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-24  0:57 UTC (permalink / raw)
  To: 9fans

> Does it work too?  If it does, then I suspect the card also implements USB1
> and UHCI for backward compatibility.

It's the problem.☺

I got a USB audio interface, too for that USB card, the name of which
is HCMI-106, named as 玄音(gen-on) probably Japanese local, too.
It's not included in your compatible list of course.

It has problem just now, getting the error message of
"Can't configure playout for 44000 or 48000 Hz".
However, I have now the audio hardware, and I think I can read your
codes with more reality.   If I get something better, I'll mail you.


Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [9fans] VT6306 chip is for OHCI or UHCI?
  2004-08-23  7:56 Kenji Okamoto
@ 2004-08-23 15:00 ` Sape Mullender
  2004-08-24  0:57   ` Kenji Okamoto
  2004-08-24  6:53   ` Kenji Okamoto
  2004-09-01  6:06 ` Kenji Okamoto
  1 sibling, 2 replies; 23+ messages in thread
From: Sape Mullender @ 2004-08-23 15:00 UTC (permalink / raw)
  To: 9fans

> I got today a USB2.0/IEE1394 interface card probably Japanese local
> card, named IFC-PCI7IU2, which is claimed by the user interface to be
> VIA OHCI Compliant.   The card uses VT6306 and VT6212 chip.
>
> I tested this card on my desktop machine, and Plan 9 recognized the
> USB interface normally.   I'm now confused much.   The Plan 9's USB
> driver is for UHCI programming interface.   Then, why this VT6306
> card can be recognized by that Plan 9 driver?   Someone more familiar
> with USB, please let me know what is going here...

Does it work too?  If it does, then I suspect the card also implements USB1
and UHCI for backward compatibility.



^ permalink raw reply	[flat|nested] 23+ messages in thread

* [9fans] VT6306 chip is for OHCI or UHCI?
@ 2004-08-23  7:56 Kenji Okamoto
  2004-08-23 15:00 ` Sape Mullender
  2004-09-01  6:06 ` Kenji Okamoto
  0 siblings, 2 replies; 23+ messages in thread
From: Kenji Okamoto @ 2004-08-23  7:56 UTC (permalink / raw)
  To: 9fans

I got today a USB2.0/IEE1394 interface card probably Japanese local
card, named IFC-PCI7IU2, which is claimed by the user interface to be
VIA OHCI Compliant.   The card uses VT6306 and VT6212 chip.

I tested this card on my desktop machine, and Plan 9 recognized the
USB interface normally.   I'm now confused much.   The Plan 9's USB
driver is for UHCI programming interface.   Then, why this VT6306
card can be recognized by that Plan 9 driver?   Someone more familiar
with USB, please let me know what is going here...

Kenji



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-09-10 10:36 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-24  3:13 [9fans] VT6306 chip is for OHCI or UHCI? Kenji Okamoto
  -- strict thread matches above, loose matches on Subject: below --
2004-08-23  7:56 Kenji Okamoto
2004-08-23 15:00 ` Sape Mullender
2004-08-24  0:57   ` Kenji Okamoto
2004-08-24  3:13     ` Kenji Okamoto
2004-08-24 14:07     ` Sape Mullender
2004-08-25  0:23       ` Kenji Okamoto
2004-08-25  1:02         ` Sape Mullender
2004-08-25  1:27       ` Kenji Okamoto
2004-08-25  2:00       ` Kenji Okamoto
2004-08-25  3:06         ` Sape Mullender
2004-08-24  6:53   ` Kenji Okamoto
2004-08-24  7:17     ` Kenji Okamoto
2004-08-25  4:44     ` Kenji Okamoto
2004-09-01  6:06 ` Kenji Okamoto
2004-09-01  8:58   ` Kenji Okamoto
2004-09-02  8:21     ` Kenji Okamoto
2004-09-09  8:00     ` Kenji Okamoto
2004-09-09  8:15       ` Kenji Okamoto
2004-09-09  9:06       ` Kenji Okamoto
2004-09-09  9:48         ` Kenji Okamoto
2004-09-10  3:03           ` Kenji Okamoto
2004-09-10 10:36             ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).