Skip to contentSkip to conversation

testers for SB Extigy wanted

DISCUSSION Takashi Iwai 2 participants 13 messages Oct 11, 2002 – Oct 14, 2002 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

can anyone test the latest cvs snd-usb-audio driver with the SB Extigy?
now the names of mixer controls on this device became more understandable.

the mixer topology of extigy is depicted in alsa-kernel/usb/usbmixer_maps.c. unlike other usb devices, this is a really complicated one.

i have still no idea for what some switches work. so, if you have an SB extigy, please test and report:

- there will be "PCM Playback" and "Digital In Playback" switches/volumes. which roles do they play?

- how does "Up Down Switch" affect?

- which output do "Digital Out1 Playback" and "Digital Out2 Playback" correspond?

TIA,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw

I might be a complete idiot, but when I load up the usb-audio drivers for my extigy out of the cvs tree, I'm not even getting the devices I need to test the stuff. I'm using devfs, and and hwC0D0 doesnt pop up.

I the same guy that once claimed that he was going to work on drivers for the extigy... although work has been pretty busy lately and im still at the "comb through the usb spec" stage of things, heh. I still lurk on this list, however, and I'm more than happy to assist in any way I can. Who knows, once things slow down again I may start ramping up to code up some goodness...

-Mark

Quoted 28 lines · Takashi Iwai

Hi,

can anyone test the latest cvs snd-usb-audio driver with the SB Extigy?
now the names of mixer controls on this device became more understandable.

the mixer topology of extigy is depicted in alsa-kernel/usb/usbmixer_maps.c. unlike other usb devices, this is a really complicated one.

i have still no idea for what some switches work. so, if you have an SB extigy, please test and report:

- there will be "PCM Playback" and "Digital In Playback" switches/volumes. which roles do they play?

- how does "Up Down Switch" affect?

- which output do "Digital Out1 Playback" and "Digital Out2 Playback" correspond?

TIA,

Takashi

Quoted 8 lines

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw

At Fri, 11 Oct 2002 09:13:12 -0500,

Quoted 5 lines · [email protected] wrote:

I might be a complete idiot, but when I load up the usb-audio drivers for my extigy out of the cvs tree, I'm not even getting the devices I need to test the stuff. I'm using devfs, and and hwC0D0 doesnt pop up.

hwCxDx is a hwdep (hardware-dependent) device, which is used for e.g. DSP or synth devices. on usb-audio, there will be no hwCxDx.

is there no pcm device, too?
any kernel messages?

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hi Mark,

At Fri, 11 Oct 2002 09:36:59 -0500,

Quoted 5 lines · [email protected] wrote:

I don't feel like spamming the list with newbie junk, but I still want to help as much as possible, so I'm just going to email you personally. If you think this stuff should still go to the list anyway, just say.

why not? it contains full of useful information.

Quoted 6 lines

I actually have two soundcards -- the onboard one (a cs4281) and the extigy. I'll just paste in all the info I can. I'm building from the cvs tree generically and firing it up from the included alsasound script. It's configured to have the cs4281 as card1 and usb-audio as card2 from modutils.

Quoted 7 lines

Here is everything syslog spits out at me when I start up alsa (the cant locate module stuff is obviously nothing, along with one or two other things, but I'll leave them in for completeness sake):

Oct 11 09:30:39 atrophy kernel: PCI: Found IRQ 10 for device 00:08.0
Oct 11 09:30:39 atrophy kernel: usb.c: registered new driver snd-usb-audio
Oct 11 09:30:40 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1662: 4:1:2 : unsupported format type 0

this should be harmless. just ignored a bogus descriptor. to be sure, could you send the output of "lsusb -v" for this device?

Quoted 1 line
Oct 11 09:30:40 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1104: cannot get min/max values for proc/ext unit

this happens sometimes. usually it's ok. the values will be fetched later.

Quoted 5 lines
Oct 11 09:30:40 atrophy modprobe: modprobe: Can't locate module snd-card-3
Oct 11 09:30:40 atrophy modprobe: modprobe: Can't locate module snd-card-4
Oct 11 09:30:40 atrophy modprobe: modprobe: Can't locate module snd-card-5
Oct 11 09:30:40 atrophy modprobe: modprobe: Can't locate module snd-card-6
Oct 11 09:30:40 atrophy modprobe: modprobe: Can't locate module snd-card-7

these are harmless, too.
you can avoid this by adding a module option to snd module such like

options snd snd_cards_limit=2

Quoted 14 lines

devfs looks like this:

atrophy:/dev/snd# pwd
/dev/snd
atrophy:/dev/snd# ls -l
total 0
crw-rw-rw-    1 root     root     116,   0 Dec 31  1969 controlC0
crw-rw-rw-    1 root     root     116,  32 Dec 31  1969 controlC1
crw-rw-rw-    1 root     root     116,  64 Dec 31  1969 controlC2
crw-rw-rw-    1 root     root     116,  96 Dec 31  1969 controlC3
crw-rw-rw-    1 root     root     116, 128 Dec 31  1969 controlC4
crw-rw-rw-    1 root     root     116, 160 Dec 31  1969 controlC5
crw-rw-rw-    1 root     root     116, 192 Dec 31  1969 controlC6
crw-rw-rw-    1 root     root     116, 224 Dec 31  1969 controlC7
Quoted 8 lines
crw-rw-rw-    1 root     root     116,   4 Dec 31  1969 hwC0D0
crw-rw-rw-    1 root     root     116,   8 Dec 31  1969 midiC0D0
crw-rw-rw-    1 root     root     116,  24 Dec 31  1969 pcmC0D0c
crw-rw-rw-    1 root     root     116,  16 Dec 31  1969 pcmC0D0p
crw-rw-rw-    1 root     root     116,  56 Dec 31  1969 pcmC1D0c
crw-rw-rw-    1 root     root     116,  48 Dec 31  1969 pcmC1D0p
crw-rw-rw-    1 root     root     116,   1 Dec 31  1969 seq
crw-rw-rw-    1 root     root     116,  33 Dec 31  1969 timer

looks ok. the pcm devices for the card1 are there (pcmC1*).

Quoted 11 lines

I can also load up the usb midi driver after this via modprobe:

Oct 11 09:33:28 atrophy kernel: snd-usb-midi: MIDIStreaming version 01.00
Oct 11 09:33:28 atrophy kernel: snd-usb-midi: detected 1 output jack(s) on endpoint 7
Oct 11 09:33:28 atrophy kernel: snd-usb-midi: detected 1 input jack(s) on endpoint 8
Oct 11 09:33:28 atrophy kernel: devfs_register(unknown): could not append to parent, err: -17
Oct 11 09:33:28 atrophy kernel: snd-usb-midi: endpoint 7: created 1 output and 0 input ports
Oct 11 09:33:28 atrophy kernel: devfs_register(unknown): could not append to parent, err: -17
Oct 11 09:33:28 atrophy kernel: devfs_register(unknown): could not append to parent, err: -17
Oct 11 09:33:28 atrophy kernel: snd-usb-midi: endpoint 8: created 0 output and 1 input ports

looks good, too. you have two midi ports on this device now.

Quoted 4 lines

Again, I might be a complete newbie, but I'm not sure how to use amixer without a hw* device. It just complains. Who knows, maybe it might be a little refreshing to have someone not "completely in-the-know" help iron out interface or loading issues, heh.

so far, all looks good.

just try to start "alsamixer -c1" and unmute the switch and change the volume as you like.
you can play via hw:1,0 pcm (you might need to use plughw:1,0 instead), for example,

% aplay -Dplughw:1,0 foo.wav

and for capture

% arecord -Dplughw:1,0 -fcd bar.wav

and /dev/dsp1 is the OSS device for Extigy (available only if you load snd-pcm-oss module).

if the above doesn't work (or even if it works), please send me the output of /proc/asound/card1/stream* files.
this contains the supported formats on the device.

to the MIDI devices, you can access either via ALSA sequencer or via a rawmidi device file /dev/snd/midiC1D0 (or midiC1D1), which is equivalent with OSS midi device, /dev/midi01 (or amidi01).

but please note that here MIDI means not the MIDI wavetable playback. apparently Extigy has _no_ wavetable function at all.
they are connectors to external MIDI devices.

and finally, if the above works properly, please check what mixer element corresponds to which role (as i asked in my original post). you can see the mixer topology and each mixer element in usbmixer_maps.c.

thanks,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#5 lore raw
Quoted 10 lines · Takashi Iwai
Quoted 7 lines

Here is everything syslog spits out at me when I start up alsa (the cant locate module stuff is obviously nothing, along with one or two other things, but I'll leave them in for completeness sake):

Oct 11 09:30:39 atrophy kernel: PCI: Found IRQ 10 for device 00:08.0
Oct 11 09:30:39 atrophy kernel: usb.c: registered new driver snd-usb-audio
Oct 11 09:30:40 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1662: 4:1:2 : unsupported format type 0

this should be harmless. just ignored a bogus descriptor. to be sure, could you send the output of "lsusb -v" for this device?

This is fairly long, so I have it included as an attachment.

Quoted 7 lines

so far, all looks good.

just try to start "alsamixer -c1" and unmute the switch and change the volume as you like.
you can play via hw:1,0 pcm (you might need to use plughw:1,0 instead), for example,

Quoted 5 lines

% aplay -Dplughw:1,0 foo.wav

and for capture

% arecord -Dplughw:1,0 -fcd bar.wav

I'd love to do this, but:

atrophy:/etc/modutils# amixer -c1
amixer: Mixer load error: hw:1
atrophy:/etc/modutils# alsamixer -c1

alsamixer: function snd_mixer_load failed: Invalid argument atrophy:/etc/modutils#

Quoted 2 lines

and /dev/dsp1 is the OSS device for Extigy (available only if you load snd-pcm-oss module).

Hmm, when I load snd-mixer-oss and snd-pcm-oss, only /dev/dsp appears as a compatibility link to sound/dsp. Sound (which im guessing is the oss stuff in the dev tree) has:

mark@atrophy:/dev/sound$ ls -l
total 0
crw-rw----    1 root     audio     14,   4 Dec 31  1969 audio
crw-rw----    1 root     audio     14,  10 Dec 31  1969 dmfm
crw-rw----    1 root     audio     14,   9 Dec 31  1969 dmmidi
crw-rw----    1 root     audio     14,   3 Dec 31  1969 dsp
crw-rw----    1 root     audio     14,   2 Dec 31  1969 midi00
crw-rw----    1 root     audio     14,   0 Dec 31  1969 mixer
crw-rw----    1 root     audio     14,  18 Dec 31  1969 unknown

Which I guess makes sense since oss only supports one audio card and I have two . . .

Quoted 3 lines

if the above doesn't work (or even if it works), please send me the output of /proc/asound/card1/stream* files.
this contains the supported formats on the device.

There is only a stream0:

atrophy:/proc/asound/card1# more stream0 
Creative Technology Ltd. : USB Audio

Playback:
Status: Stop
Interface 1

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000

Capture:
Status: Stop
Interface 2

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 8000
  Interface 2
    Altset 2
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 16000
  Interface 2
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 24000
  Interface 2
    Altset 4
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 32000
  Interface 2
    Altset 5
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 48000
Quoted 3 lines

to the MIDI devices, you can access either via ALSA sequencer or via a rawmidi device file /dev/snd/midiC1D0 (or midiC1D1), which is equivalent with OSS midi device, /dev/midi01 (or amidi01).

The two devices popping up seem consistant with the hardware, it has a midi in/out (no thru).

Quoted 3 lines

but please note that here MIDI means not the MIDI wavetable playback. apparently Extigy has _no_ wavetable function at all.
they are connectors to external MIDI devices.

Thats ok, wavetables suck. I'd rather hook up my own bank via midi, heh.

Quoted 4 lines

and finally, if the above works properly, please check what mixer element corresponds to which role (as i asked in my original post). you can see the mixer topology and each mixer element in usbmixer_maps.c.

As shown above, amixer doesnt want to fire up. I hate to do it, but here is a wishlist:

- have the volume knob on the front of the device work
- be able to turn "cmss" on and off either via the controling client or on the hardware itself. (its a dsp that fakes surround sound fairly well).
- be able to control the output detection of the unit. apparently it can tell if you have 2, 4, or 5 speakers hooked up into it. the option can certainly be automatic (testable when i unplug the card and use it as a standalone), and I'm fairly certain it can be forced as well (as evidenced in windows). When I was able to use the hardware with the current rc release of alsa, it forced 2 speaker selection.
- the remote ir stuff is cute but not really essential -- would be nice to have hooks to attach triggers to or something.

It's a really tall list, but its just so know where I'm comming from and where I ultimately want to head with it. I'm more than happy to help you take me as far you're willing =p

thanks,
-mark

Bus 001 Device 004: ID 041e:3000 Creative Labs
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10

  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x041e Creative Labs
  idProduct          0x3000 
  bcdDevice            1.00
  iManufacturer           1 Creative Technology Ltd.
  iProduct                2 Sound Blaster Extigy
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         1701
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength          410
        bInCollection           4
        baInterfaceNr( 0)       1
        baInterfaceNr( 1)       2
        baInterfaceNr( 2)       3
        baInterfaceNr( 3)       4
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                21
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 2
        bSourceID               1
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      5 (SELECTOR_UNIT)
        bUnitID                 5
        bNrInPins               2
        baSource( 0)            3
        baSource( 1)            4
        iSelector               0 
      AudioControl Interface Descriptor:
        bLength                21
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 6
        bSourceID               5
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             7
        wTerminalType      0x0603 Line Connector
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 8
        bSourceID               7
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             9
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                10
        bSourceID               9
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      5 (SELECTOR_UNIT)
        bUnitID                11
        bNrInPins               3
        baSource( 0)            7
        baSource( 1)            9
        baSource( 2)           17
        iSelector               0 
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                12
        bSourceID              11
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            13
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID              12
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      4 (MIXER_UNIT)
        bUnitID                14
        bNrInPins               2
        baSourceID( 0)          8
        baSourceID( 1)          6
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        bmControls         0x00
        iMixer                  0 
        junk at descriptor end: 00 00 00 00
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      7 (PROCESSING_UNIT)
        bUnitID                15
        wProcessType            3
        bNrPins                 1
        baSourceID( 0)         14
        bNrChannels             5
        wChannelConfig     0x0037
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x01
          Enable Processing
        iProcessing             0 
        Process-Specific    
      AudioControl Interface Descriptor:
        bLength                26
        bDescriptorType        36
        bDescriptorSubtype      4 (MIXER_UNIT)
        bUnitID                16
        bNrInPins               4
        baSourceID( 0)          2
        baSourceID( 1)          6
        baSourceID( 2)         15
        baSourceID( 3)         10
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bmControls         0x00
        bmControls         0x00
        bmControls         0x00
        iMixer                  0 
        junk at descriptor end: 00 00 00 00 00 00 00 00 00
      AudioControl Interface Descriptor:
        bLength                30
        bDescriptorType        36
        bDescriptorSubtype      7 (PROCESSING_UNIT)
        bUnitID                17
        wProcessType            1
        bNrPins                 1
        baSourceID( 0)         16
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x03
          Enable Processing
        iProcessing             0 
        Process-Specific     07 03 00 03 00 0b 00 33 00 3b 00 37 00 3f 00
      AudioControl Interface Descriptor:
        bLength                21
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                18
        bSourceID              17
        bControlSize            2
        bmaControls( 0)      0x17
        bmaControls( 1)      0x00
          Mute
          Volume
          Bass
          Treble
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      8 (EXTENSION_UNIT)
        bUnitID                27
        wExtensionCode          0
        bNrPins                 1
        baSourceID( 0)         18
        bNrChannels             6
        wChannelConfig         63
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x01
          Enable Processing
        iExtension              0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                28
        bSourceID              27
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            19
        wTerminalType      0x0301 Speaker
        bAssocTerminal          0
        bSourceID              28
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            20
        wTerminalType      0x0302 Headphones
        bAssocTerminal          0
        bSourceID              18
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      8 (EXTENSION_UNIT)
        bUnitID                21
        wExtensionCode          0
        bNrPins                 1
        baSourceID( 0)         27
        bNrChannels             6
        wChannelConfig         63
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x01
          Enable Processing
        iExtension              0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                22
        bSourceID              21
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                23
        bSourceID              22
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            24
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bSourceID              23
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                25
        bSourceID              22
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            26
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bSourceID              25
        iTerminal               0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        200
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             3
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        102
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             5
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        126
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             5
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        198
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             6
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        174
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             6
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        246
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       7
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             3
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        190
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       8
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             5
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        236
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       9
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             5
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        374
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      10
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             6
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        328
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      11
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              0 TYPE_I_UNDEFINED
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             6
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        466
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
  descriptor length past end: 09 04 01 0c 02 01 02 00
  Language IDs: (length=4)
     0409 English(US)

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

At Fri, 11 Oct 2002 10:34:11 -0500,

Quoted 6 lines · [email protected] wrote:
Quoted 4 lines · Takashi Iwai
Quoted 4 lines

Here is everything syslog spits out at me when I start up alsa (the cant locate module stuff is obviously nothing, along with one or two other things, but I'll leave them in for completeness sake):

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Oct 11 09:30:39 atrophy kernel: PCI: Found IRQ 10 for device 00:08.0
Oct 11 09:30:39 atrophy kernel: usb.c: registered new driver snd-usb-audio
Oct 11 09:30:40 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1662: 4:1:2 : unsupported format type 0

this should be harmless. just ignored a bogus descriptor. to be sure, could you send the output of "lsusb -v" for this device?

This is fairly long, so I have it included as an attachment.

thanks.

Quoted 14 lines
Quoted 8 lines

so far, all looks good.

just try to start "alsamixer -c1" and unmute the switch and change the volume as you like.
you can play via hw:1,0 pcm (you might need to use plughw:1,0 instead), for example,

Quoted 5 lines

% aplay -Dplughw:1,0 foo.wav

and for capture

% arecord -Dplughw:1,0 -fcd bar.wav

Quoted 8 lines

I'd love to do this, but:

atrophy:/etc/modutils# amixer -c1
amixer: Mixer load error: hw:1
atrophy:/etc/modutils# alsamixer -c1

alsamixer: function snd_mixer_load failed: Invalid argument atrophy:/etc/modutils#

hmm, could you run "alsactl store" and show the generated /etc/asound.state (only for the second card is enough)? at least we can see whether the controls are parsed properly.

Quoted 5 lines
Quoted 2 lines

and /dev/dsp1 is the OSS device for Extigy (available only if you load snd-pcm-oss module).

Hmm, when I load snd-mixer-oss and snd-pcm-oss, only /dev/dsp appears as a compatibility link to sound/dsp. Sound (which im guessing is the oss stuff in the dev tree) has:

Quoted 9 lines
mark@atrophy:/dev/sound$ ls -l
total 0
crw-rw----    1 root     audio     14,   4 Dec 31  1969 audio
crw-rw----    1 root     audio     14,  10 Dec 31  1969 dmfm
crw-rw----    1 root     audio     14,   9 Dec 31  1969 dmmidi
crw-rw----    1 root     audio     14,   3 Dec 31  1969 dsp
crw-rw----    1 root     audio     14,   2 Dec 31  1969 midi00
crw-rw----    1 root     audio     14,   0 Dec 31  1969 mixer
crw-rw----    1 root     audio     14,  18 Dec 31  1969 unknown

ah, i forgot that you're using devfs. you need more config entry in devfs.conf for /dev/dsp1... sorry, i cannot tell more, since i'm not a devfs expert.

Quoted 4 lines

Which I guess makes sense since oss only supports one audio card and I have two . . .

Quoted 8 lines
Quoted 3 lines

if the above doesn't work (or even if it works), please send me the output of /proc/asound/card1/stream* files.
this contains the supported formats on the device.

There is only a stream0:

atrophy:/proc/asound/card1# more stream0 
Creative Technology Ltd. : USB Audio

it looks that the driver couldn't get the product name. needs check lsusb output...

Quoted 9 lines

Playback:
Status: Stop
Interface 1

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000

also, only one format was parsed.. it's strange, too.

Quoted 19 lines
Quoted 4 lines

to the MIDI devices, you can access either via ALSA sequencer or via a rawmidi device file /dev/snd/midiC1D0 (or midiC1D1), which is equivalent with OSS midi device, /dev/midi01 (or amidi01).

The two devices popping up seem consistant with the hardware, it has a midi in/out (no thru).

Quoted 3 lines

but please note that here MIDI means not the MIDI wavetable playback. apparently Extigy has _no_ wavetable function at all.
they are connectors to external MIDI devices.

Thats ok, wavetables suck. I'd rather hook up my own bank via midi, heh.

Quoted 4 lines

and finally, if the above works properly, please check what mixer element corresponds to which role (as i asked in my original post). you can see the mixer topology and each mixer element in usbmixer_maps.c.

Quoted 4 lines

As shown above, amixer doesnt want to fire up. I hate to do it, but here is a wishlist:

- have the volume knob on the front of the device work

usually such a "hardware" control is independent from the software stuff, so it may work regardless what driver does.

Quoted 2 lines

- be able to turn "cmss" on and off either via the controling client or on the hardware itself. (its a dsp that fakes surround sound fairly well).

perhaps already implemented but just cannot be used :) i guess that one of the unknown switch corresponds to this.

Quoted 6 lines

- be able to control the output detection of the unit. apparently it can tell if you have 2, 4, or 5 speakers hooked up into it. the option can certainly be automatic (testable when i unplug the card and use it as a standalone), and I'm fairly certain it can be forced as well (as evidenced in windows). When I was able to use the hardware with the current rc release of alsa, it forced 2 speaker selection.

i think this is because only one format was parsed correctly. the other formats with 6 channels were not parsed by some reason.

but i'm not sure how the driver can detect the plug status...

Quoted 2 lines

- the remote ir stuff is cute but not really essential -- would be nice to have hooks to attach triggers to or something.

this will not be implemented on the usb audio driver. it's a role of another input-driver, and a corresponding daemon.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#8 lore raw

At Fri, 11 Oct 2002 18:02:09 +0200,

Quoted 4 lines · I wrote:

hmm, could you run "alsactl store" and show the generated /etc/asound.state (only for the second card is enough)? at least we can see whether the controls are parsed properly.

also, please check the kernel message after running the commands above. do any messages like "cannot get min/max..." appear?

please update the cvs tree before trying again.
i changed the code so that more PCM formats become available.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#9 lore raw
Quoted 7 lines · Takashi Iwai

At Fri, 11 Oct 2002 18:02:09 +0200,

Quoted 4 lines · I wrote:

hmm, could you run "alsactl store" and show the generated /etc/asound.state (only for the second card is enough)? at least we can see whether the controls are parsed properly.

Quoted 5 lines

also, please check the kernel message after running the commands above. do any messages like "cannot get min/max..." appear?

please update the cvs tree before trying again.
i changed the code so that more PCM formats become available.

Updated the tree, recompiled, same message:

atrophy:/usr/local/src/alsa# alsactl store
alsactl: get_control:194: Cannot read control '2,0,0,Digital In Playback Source,0': Invalid argument

No logs in any syslog facilities are generated.

-mark

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#10 lore raw

At Fri, 11 Oct 2002 13:00:23 -0500,

Quoted 12 lines · [email protected] wrote:
Quoted 10 lines · Takashi Iwai

At Fri, 11 Oct 2002 18:02:09 +0200,

Quoted 4 lines · I wrote:

hmm, could you run "alsactl store" and show the generated /etc/asound.state (only for the second card is enough)? at least we can see whether the controls are parsed properly.

also, please check the kernel message after running the commands above. do any messages like "cannot get min/max..." appear?

Quoted 7 lines
Quoted 2 lines

please update the cvs tree before trying again.
i changed the code so that more PCM formats become available.

Updated the tree, recompiled, same message:

atrophy:/usr/local/src/alsa# alsactl store
alsactl: get_control:194: Cannot read control '2,0,0,Digital In Playback Source,0': Invalid argument

please rebuild the alsa drivers with configure option "--with-debug=detect" ? this will add more verbose debug outputs (ususally annoying).

the attached patch will ignore the errors from the usb controller after a mixer control is inquired. the error above shall be avoided by this patch. please check the kernel messages. so we can know which control is wrong, either wrongly inquired or due to a bug of usb controller module.

also, please check /proc/asound/card0/stream* files again. now there should be more entries in them (is it only one?).

Takashi

#11 lore raw
Quoted 3 lines · Takashi Iwai

please rebuild the alsa drivers with configure option "--with-debug=detect" ? this will add more verbose debug outputs (ususally annoying).

Small typo in the patch, nothing big just a . that should be a >

Quoted 5 lines

the attached patch will ignore the errors from the usb controller after a mixer control is inquired. the error above shall be avoided by this patch. please check the kernel messages. so we can know which control is wrong, either wrongly inquired or due to a bug of usb controller module.

After I load the drivers:

Oct 11 13:36:48 atrophy kernel: PCI: Found IRQ 10 for device 00:08.0
Oct 11 13:36:49 atrophy kernel: usb.c: registered new driver snd-usb-audio
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:1: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:2 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:2: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:3 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:3: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:4 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:4: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:5 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:5: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:6 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:6: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:7 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:7: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:8 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:8: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:9 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:9: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:10 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:10: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:11 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:11: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:12 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:12: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:13 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:13: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:14 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:14: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:15 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:15: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:16 : format type 0 is detected, processed as PCM
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:16: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:1: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:2: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:3: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:4: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:5: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1601: 4:3:1 : format type 2 is not supported yet
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1601: 4:3:2 : format type 3 is not supported yet
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [2] FU [PCM Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [2] FU [PCM Playback Volume] ch = 1, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1370: [5] SU [Digital In Playback Source] items = 2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [6] FU [Digital In Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [6] FU [Digital In Volume] ch = 1, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [8] FU [Line Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [8] FU [Line Playback Volume] ch = 2, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [8] FU [Line Playback Volume] ch = 1, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1167: [15] PU [3D Stereo Extender Switch] ch = 1, val = 0/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [10] FU [Mic Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [10] FU [Mic Playback Volume] ch = 1, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1167: [17] PU [Up Down Switch] ch = 1, val = 0/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1167: [17] PU [Up Down Mode Select] ch = 1, val = 0/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1370: [11] SU [Capture Source] items = 3
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [12] FU [Capture Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [12] FU [Capture Volume] ch = 1, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [18] FU [Master Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [18] FU [Master Playback Volume] ch = 6, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [18] FU [Master Playback Volume] ch = 1, val = -25600/0
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [18] FU [Tone Control - Bass] ch = 1, val = -48/48
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [18] FU [Tone Control - Treble] ch = 1, val = -48/48
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [28] FU [Speaker Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [22] FU [Digital Out Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [23] FU [Digital Out1 Playback Switch] ch = 1, val = 0/1
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [25] FU [Digital Out2 Playback Switch] ch = 1, val = 0/1
Quoted 2 lines

also, please check /proc/asound/card0/stream* files again. now there should be more entries in them (is it only one?).

There is only one:

atrophy:/proc/asound/card1# more stream0 
Creative Technology Ltd. : USB Audio

Playback:
Status: Stop
Interface 1

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 2
    Format: S16_LE
    Channels: 3
    Endpoint: 2 OUT (ASYNC)
    Rates: 22050
  Interface 1
    Altset 3
    Format: S16_LE
    Channels: 5
    Endpoint: 2 OUT (ASYNC)
    Rates: 22050
  Interface 1
    Altset 4
    Format: S16_LE
    Channels: 5
    Endpoint: 2 OUT (ASYNC)
    Rates: 22050
  Interface 1
    Altset 5
    Format: S16_LE
    Channels: 6
    Endpoint: 2 OUT (ASYNC)
    Rates: 22050
  Interface 1
    Altset 6
    Format: S16_LE
    Channels: 6
    Endpoint: 2 OUT (ASYNC)
    Rates: 22050
  Interface 1
    Altset 7
    Format: S16_LE
    Channels: 3
    Endpoint: 2 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 8
    Format: S16_LE
    Channels: 5
    Endpoint: 2 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 9
    Format: S16_LE
    Channels: 5
    Endpoint: 2 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 10
    Format: S16_LE
    Channels: 6
    Endpoint: 2 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 11
    Format: S16_LE
    Channels: 6
    Endpoint: 2 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 12
    Format: S16_LE
    Channels: 3
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 13
    Format: S16_LE
    Channels: 5
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 14
    Format: S16_LE
    Channels: 5
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 15
    Format: S16_LE
    Channels: 6
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 16
    Format: S16_LE
    Channels: 6
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000

Capture:
Status: Stop
Interface 2

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 8000
  Interface 2
    Altset 2
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 16000
  Interface 2
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 24000
  Interface 2
    Altset 4
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 32000
  Interface 2
    Altset 5
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 48000

-mark

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#12 lore raw

At Fri, 11 Oct 2002 13:39:01 -0500,

Quoted 6 lines · [email protected] wrote:
Quoted 5 lines

the attached patch will ignore the errors from the usb controller after a mixer control is inquired. the error above shall be avoided by this patch. please check the kernel messages. so we can know which control is wrong, either wrongly inquired or due to a bug of usb controller module.

Quoted 6 lines

After I load the drivers:

Oct 11 13:36:48 atrophy kernel: PCI: Found IRQ 10 for device 00:08.0
Oct 11 13:36:49 atrophy kernel: usb.c: registered new driver snd-usb-audio
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:1: add audio endpoint 0x2
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1610: 4:1:2 : form

(ship)

so far, so good.

Quoted 7 lines
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:1: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:2: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:3: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:4: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:5: add audio endpoint 0x86
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1601: 4:3:1 : format type 2 is not supported yet
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1601: 4:3:2 : format type 3 is not supported yet

hmm, i didn't see any interface 2 or 3 in your lsusb output. could you try again "lsusb -v" so that we can check these interfaces? perhaps they correspond to SPDIF digital i/o.
(these format types are not supported anyway, but it's possible to add
such funcitionality.)

Quoted 1 line
Oct 11 13:36:49 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:808: [2] FU [PCM Playback Switch] ch = 1, val = 0/1

(ship)

there was a bug in for getting min/max values of the process-unit and extension-unit.
it's fixed on cvs, so please try to update.

Quoted 10 lines
Quoted 3 lines

also, please check /proc/asound/card0/stream* files again. now there should be more entries in them (is it only one?).

There is only one:

atrophy:/proc/asound/card1# more stream0 
Creative Technology Ltd. : USB Audio

Playback:

(ship)

strangely, there are some duplicated entires, i.e. the same format, the same channels and the same rate.
in fact they appear in the usb descriptors. i don't know what is difference.

anyway, i'm looking forward to further your results.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#13 lore raw

Ok, here are the new results. I've decided to include most of the output as attached files. Figured it would be easier this way for most people.

The tests were done with the cvs tree from around 14:30EST with your test define included in the usbmixer code. Included are:

lsusb-out.txt: lsusb -vv -s 1:4
sys-out.txt: syslog text when initializing default alsa drivers proc-stream0.txt: stream0 contents (only stream file available) alsactl-store-out.txt: syslog text when doing a alsactl store

As always, need anything else and I'll be more than happy to provide. Sorry about the slow reply today, Mondays are full of meetings.

-mark

Bus 001 Device 004: ID 041e:3000 Creative Labs
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10

  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x041e Creative Labs
  idProduct          0x3000 
  bcdDevice            1.00
  iManufacturer           1 Creative Technology Ltd.
  iProduct                2 Sound Blaster Extigy
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          794
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength          410
        bInCollection           3
        baInterfaceNr( 0)       1
        baInterfaceNr( 1)       2
        baInterfaceNr( 2)       3
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                21
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 2
        bSourceID               1
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      5 (SELECTOR_UNIT)
        bUnitID                 5
        bNrInPins               2
        baSource( 0)            3
        baSource( 1)            4
        iSelector               0 
      AudioControl Interface Descriptor:
        bLength                21
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 6
        bSourceID               5
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             7
        wTerminalType      0x0603 Line Connector
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 8
        bSourceID               7
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             9
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                10
        bSourceID               9
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      5 (SELECTOR_UNIT)
        bUnitID                11
        bNrInPins               3
        baSource( 0)            7
        baSource( 1)            9
        baSource( 2)           17
        iSelector               0 
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                12
        bSourceID              11
        bControlSize            2
        bmaControls( 0)      0x03
        bmaControls( 1)      0x00
          Mute
          Volume
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        bmaControls( 0)      0x00
        bmaControls( 1)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            13
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID              12
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      4 (MIXER_UNIT)
        bUnitID                14
        bNrInPins               2
        baSourceID( 0)          8
        baSourceID( 1)          6
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        bmControls         0x00
        iMixer                  0 
        junk at descriptor end: 00 00 00 00
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      7 (PROCESSING_UNIT)
        bUnitID                15
        wProcessType            3
        bNrPins                 1
        baSourceID( 0)         14
        bNrChannels             5
        wChannelConfig     0x0037
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x01
          Enable Processing
        iProcessing             0 
        Process-Specific    
      AudioControl Interface Descriptor:
        bLength                26
        bDescriptorType        36
        bDescriptorSubtype      4 (MIXER_UNIT)
        bUnitID                16
        bNrInPins               4
        baSourceID( 0)          2
        baSourceID( 1)          6
        baSourceID( 2)         15
        baSourceID( 3)         10
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bmControls         0x00
        bmControls         0x00
        bmControls         0x00
        iMixer                  0 
        junk at descriptor end: 00 00 00 00 00 00 00 00 00
      AudioControl Interface Descriptor:
        bLength                30
        bDescriptorType        36
        bDescriptorSubtype      7 (PROCESSING_UNIT)
        bUnitID                17
        wProcessType            1
        bNrPins                 1
        baSourceID( 0)         16
        bNrChannels             6
        wChannelConfig     0x003f
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x03
          Enable Processing
        iProcessing             0 
        Process-Specific     07 03 00 03 00 0b 00 33 00 3b 00 37 00 3f 00
      AudioControl Interface Descriptor:
        bLength                21
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                18
        bSourceID              17
        bControlSize            2
        bmaControls( 0)      0x17
        bmaControls( 1)      0x00
          Mute
          Volume
          Bass
          Treble
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 0)      0x02
        bmaControls( 1)      0x00
          Volume
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      8 (EXTENSION_UNIT)
        bUnitID                27
        wExtensionCode          0
        bNrPins                 1
        baSourceID( 0)         18
        bNrChannels             6
        wChannelConfig         63
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x01
          Enable Processing
        iExtension              0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                28
        bSourceID              27
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            19
        wTerminalType      0x0301 Speaker
        bAssocTerminal          0
        bSourceID              28
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            20
        wTerminalType      0x0302 Headphones
        bAssocTerminal          0
        bSourceID              18
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      8 (EXTENSION_UNIT)
        bUnitID                21
        wExtensionCode          0
        bNrPins                 1
        baSourceID( 0)         27
        bNrChannels             6
        wChannelConfig         63
          Left Front (L)
          Right Front (R)
          Center Front (C)
          Low Freqency Enhancement (LFE)
          Left Surround (LS)
          Right Surround (RS)
        iChannelNames           0 
        bControlSize            1
        bmControls( 0)       0x01
          Enable Processing
        iExtension              0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                22
        bSourceID              21
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                23
        bSourceID              22
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            24
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bSourceID              23
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                14
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                25
        bSourceID              22
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        bmaControls( 0)      0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            26
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bSourceID              25
        iTerminal               0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        200
        bInterval               1
        bRefresh                0
        bSynchAddress           3
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          13
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]         8000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize         40
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          13
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        16000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize         72
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          13
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        24000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        104
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          13
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        32000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        136
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          13
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize        200
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           3
        bDelay                  0 frames
        wFormatTag           4098 AC-3
      AudioControl Interface Descriptor:
        bLength                15
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             2 (FORMAT_TYPE_II)
      Warning: Descriptor too short
        wMaxBitRate           640
        wSamplesPerFrame     1536
        bSamFreqType            2 Discrete
        tSamFreq[ 0]        44100
        tSamFreq[ 1]        48000
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      3 (FORMAT_SPECIFIC)
        wFormatTag           4098 AC-3
        bmBSID         0x0000001f
        bmAC3Features        0x00
          Internal Dynamic Range Control: not supported
        junk at descriptor end: 00 00
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
        wMaxPacketSize         84
        bInterval               1
        bRefresh                0
        bSynchAddress           5
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               none
        wMaxPacketSize          3
        bInterval               1
        bRefresh                6
        bSynchAddress           0
  Language IDs: (length=4)
     0409 English(US)
Oct 14 14:00:09 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:286: cannot get ctl value: req = 0x81, idx = 0x0, val = 0x500, type = 3
Oct 14 14:00:09 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:286: cannot get ctl value: req = 0x81, idx = 0x1, val = 0xf00, type = 0
Oct 14 14:00:09 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:286: cannot get ctl value: req = 0x81, idx = 0x1, val = 0x1100, type = 0
Oct 14 14:00:09 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:286: cannot get ctl value: req = 0x83, idx = 0x200, val = 0x1100, type = 3
Oct 14 14:00:09 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:581: 17:0: cannot get min/max values for control 2 (id 17)
Oct 14 14:00:09 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:286: cannot get ctl value: req = 0x81, idx = 0x2, val = 0x1100, type = 3
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Master Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Master Playback Volume] ch = 6, val = -25600/0
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Master Playback Volume] ch = 1, val = -25600/0
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Tone Control - Bass] ch = 1, val = -48/48
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Tone Control - Treble] ch = 1, val = -48/48
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [28] FU [Speaker Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [22] FU [Digital Out Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [23] FU [Digital Out1 Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:14 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [25] FU [Digital Out2 Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:20 atrophy kernel: usb.c: deregistering driver snd-usb-audio
Oct 14 14:06:30 atrophy kernel: PCI: Found IRQ 10 for device 00:08.0
Oct 14 14:06:30 atrophy kernel: usb.c: registered new driver snd-usb-audio
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:1:1: add audio endpoint 0x2
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:1: add audio endpoint 0x86
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:2: add audio endpoint 0x86
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:3: add audio endpoint 0x86
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:4: add audio endpoint 0x86
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1820: 4:2:5: add audio endpoint 0x86
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1601: 4:3:1 : format type 2 is not supported yet
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [2] FU [PCM Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [2] FU [PCM Playback Volume] ch = 1, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1369: [5] SU [Digital In Playback Source] items = 2
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [6] FU [Digital In Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [6] FU [Digital In Volume] ch = 1, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [8] FU [Line Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [8] FU [Line Playback Volume] ch = 2, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [8] FU [Line Playback Volume] ch = 1, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1164: [15] PU [3D Stereo Extender Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [10] FU [Mic Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [10] FU [Mic Playback Volume] ch = 1, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1164: [17] PU [Up Down Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1164: [17] PU [Up Down Mode Select] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:1369: [11] SU [Capture Source] items = 3
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [12] FU [Capture Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [12] FU [Capture Volume] ch = 1, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Master Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Master Playback Volume] ch = 6, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Master Playback Volume] ch = 1, val = -25600/0
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Tone Control - Bass] ch = 1, val = -48/48
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [18] FU [Tone Control - Treble] ch = 1, val = -48/48
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [28] FU [Speaker Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [22] FU [Digital Out Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [23] FU [Digital Out1 Playback Switch] ch = 1, val = 0/1
Oct 14 14:06:30 atrophy kernel: ALSA ../alsa-kernel/usb/usbmixer.c:816: [25] FU [Digital Out2 Playback Switch] ch = 1, val = 0/1

Creative Technology Ltd. : USB Audio

Playback:
Status: Stop
Interface 1

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 OUT (ASYNC)
    Rates: 48000

Capture:
Status: Stop
Interface 2

    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 8000
  Interface 2
    Altset 2
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 16000
  Interface 2
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 24000
  Interface 2
    Altset 4
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 32000
  Interface 2
    Altset 5
    Format: S16_LE
    Channels: 2
    Endpoint: 6 IN (ASYNC)
    Rates: 48000
#14 lore raw
In reply to Takashi Iwai
Quoted 12 lines · Takashi Iwai
Quoted 12 lines
Quoted 5 lines

% aplay -Dplughw:1,0 foo.wav

and for capture

% arecord -Dplughw:1,0 -fcd bar.wav

I'd love to do this, but:

atrophy:/etc/modutils# amixer -c1
amixer: Mixer load error: hw:1
atrophy:/etc/modutils# alsamixer -c1
Quoted 6 lines
Quoted 2 lines

alsamixer: function snd_mixer_load failed: Invalid argument atrophy:/etc/modutils#

hmm, could you run "alsactl store" and show the generated /etc/asound.state (only for the second card is enough)? at least we can see whether the controls are parsed properly.

atrophy:~# alsactl store
alsactl: get_control:194: Cannot read control '2,0,0,Digital In Playback Source,0': Invalid argument

As a result, the state file does not generate entries for the extigy.

Quoted 3 lines

ah, i forgot that you're using devfs. you need more config entry in devfs.conf for /dev/dsp1... sorry, i cannot tell more, since i'm not a devfs expert.

That's ok, I can handle that.

Quoted 4 lines
Quoted 1 line

- have the volume knob on the front of the device work

usually such a "hardware" control is independent from the software stuff, so it may work regardless what driver does.

I'll tell you as soon as I can, heh. It's actually a software-based knob however, and has no electronic "hardware" component a la "standard" volume controls.

Quoted 11 lines
Quoted 6 lines

- be able to control the output detection of the unit. apparently it can tell if you have 2, 4, or 5 speakers hooked up into it. the option can certainly be automatic (testable when i unplug the card and use it as a standalone), and I'm fairly certain it can be forced as well (as evidenced in windows). When I was able to use the hardware with the current rc release of alsa, it forced 2 speaker selection.

i think this is because only one format was parsed correctly. the other formats with 6 channels were not parsed by some reason.

but i'm not sure how the driver can detect the plug status...

To my knowlege, the only three states are 2, 4, and 5 speakers. This is reflected in the driver provided by CL in windows.

Quoted 5 lines
Quoted 2 lines

- the remote ir stuff is cute but not really essential -- would be nice to have hooks to attach triggers to or something.

this will not be implemented on the usb audio driver. it's a role of another input-driver, and a corresponding daemon.

Yup, no problem, I'm sure I'll be able to handle that as well.

-mark

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf