All of lore.kernel.org
 help / color / mirror / Atom feed
* USB headset problem
@ 2005-10-14  5:43 Szekeres István
  2005-10-14  8:00 ` Martin Habets
  2005-10-14  8:07 ` Clemens Ladisch
  0 siblings, 2 replies; 17+ messages in thread
From: Szekeres István @ 2005-10-14  5:43 UTC (permalink / raw)
  To: alsa-devel

Hi,

This is the latest git kernel snapshot.

I've just bought a "Gembird EHS-USB" headset (this is with a microphone).
Audio playback is OK, but recording is not. Applications do not find the
"capture channel". E.g. alsamixer shows only the PCM channel, but when I try
to switch to "capture view", it quits with:

alsamixer: function snd_mixer_find_selem() failed: Invalid argument

lsusb -v   (this will be long...):


Bus 005 Device 002: ID 08bb:2900 Texas Instruments Japan 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x08bb Texas Instruments Japan
  idProduct          0x2900 
  bcdDevice            1.00
  iManufacturer           1 Burr-Brown from TI              
  iProduct                2 USB Audio CODEC 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         1191
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength           62
        bInCollection           2
        baInterfaceNr( 0)       1
        baInterfaceNr( 1)       2
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             2
        wTerminalType      0x0301 Speaker
        bAssocTerminal          0
        bSourceID               3
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 3
        bSourceID               1
        bControlSize            1
        bmaControls( 0)      0x01
          Mute
        bmaControls( 1)      0x02
          Volume
        bmaControls( 2)      0x02
          Volume
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             5
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               4
        iTerminal               0 
    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           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            3 Discrete
        tSamFreq[ 0]        32000
        tSamFreq[ 1]        44100
        tSamFreq[ 2]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay            512 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            3 Discrete
        tSamFreq[ 0]        32000
        tSamFreq[ 1]        44100
        tSamFreq[ 2]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0060  1x 96 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay            512 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            3 Discrete
        tSamFreq[ 0]        32000
        tSamFreq[ 1]        44100
        tSamFreq[ 2]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0060  1x 96 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay            512 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            3 Discrete
        tSamFreq[ 0]        32000
        tSamFreq[ 1]        44100
        tSamFreq[ 2]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0030  1x 48 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay            512 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              2 PCM8
      AudioStreaming Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            3 Discrete
        tSamFreq[ 0]        32000
        tSamFreq[ 1]        44100
        tSamFreq[ 2]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0060  1x 96 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay            512 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  0 frames
        wFormatTag              2 PCM8
      AudioStreaming Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            3 Discrete
        tSamFreq[ 0]        32000
        tSamFreq[ 1]        44100
        tSamFreq[ 2]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0030  1x 48 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay            512 Decoded PCM samples
    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 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming 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     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x00c4  1x 196 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0062  1x 98 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming 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]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x00b4  1x 180 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x005a  1x 90 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming 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     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0084  1x 132 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        32000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0042  1x 66 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       7
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming 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]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x005c  1x 92 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       8
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x002e  1x 46 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       9
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming 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     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0044  1x 68 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      10
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        16000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0022  1x 34 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      11
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        16000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0022  1x 34 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      12
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        16000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0011  1x 17 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      13
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            1 Discrete
        tSamFreq[ 0]         8000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0012  1x 18 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      14
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            1 Discrete
        tSamFreq[ 0]         8000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      15
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming 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]        11025
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x0030  1x 48 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      16
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        11025
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x0018  1x 24 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      17
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        11025
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x0018  1x 24 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting      18
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           5
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           1
        bBitResolution          8
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        11025
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x000c  1x 12 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      31
          Report Descriptor: (length is 31)
            Item(Global): Usage Page, data= [ 0x0c ] 12
                            Consumer
            Item(Local ): Usage, data= [ 0x01 ] 1
                            Consumer Control
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Usage Page, data= [ 0x0c ] 12
                            Consumer
            Item(Local ): Usage, data= [ 0xe2 ] 226
                            Mute
            Item(Local ): Usage, data= [ 0xe9 ] 233
                            Volume Increment
            Item(Local ): Usage, data= [ 0xea ] 234
                            Volume Decrement
            Item(Global): Report Count, data= [ 0x03 ] 3
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x42 ] 66
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State Null_State Non_Volatile Bitfield
            Item(Global): Report Count, data= [ 0x05 ] 5
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x01 ] 1
                            Constant Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              10


When plugging the headset into the computer dmesg says:

Oct 13 22:39:01 rhye kernel: hub 1-0:1.0: state 5 ports 8 chg 0000 evt ff80
Oct 13 22:39:01 rhye kernel: ehci_hcd 0000:00:10.4: GetStatus port 7 status
001803 POWER sig=j CSC CONNECT
Oct 13 22:39:01 rhye kernel: hub 1-0:1.0: port 7, status 0501, change 0001,
480 Mb/s
Oct 13 22:39:01 rhye kernel: hub 1-0:1.0: debounce: port 7: total 100ms
stable 100ms status 0x501
Oct 13 22:39:01 rhye kernel: ehci_hcd 0000:00:10.4: port 7 full speed -->
companion
Oct 13 22:39:01 rhye kernel: ehci_hcd 0000:00:10.4: GetStatus port 7 status
003001 POWER OWNER sig=se0 CONNECT
Oct 13 22:39:01 rhye kernel: uhci_hcd 0000:00:10.3: wakeup_rh (auto-start)
Oct 13 22:39:01 rhye kernel: hub 5-0:1.0: state 5 ports 2 chg 0000 evt 0002
Oct 13 22:39:01 rhye kernel: uhci_hcd 0000:00:10.3: port 1 portsc 0093,00
Oct 13 22:39:01 rhye kernel: hub 5-0:1.0: port 1, status 0101, change 0001,
12 Mb/s
Oct 13 22:39:02 rhye kernel: hub 5-0:1.0: debounce: port 1: total 100ms
stable 100ms status 0x101
Oct 13 22:39:02 rhye kernel: usb 5-1: new full speed USB device using
uhci_hcd and address 2
Oct 13 22:39:02 rhye kernel: usb 5-1: ep0 maxpacket = 8
Oct 13 22:39:02 rhye kernel: usb 5-1: skipped 6 descriptors after interface
Oct 13 22:39:02 rhye kernel: usb 5-1: skipped 2 descriptors after interface
[The last 2 lines repeated about 30 times..]
Oct 13 22:39:02 rhye kernel: usb 5-1: default language 0x0409
Oct 13 22:39:02 rhye kernel: usb 5-1: new device strings: Mfr=1, Product=2,
SerialNumber=0
Oct 13 22:39:02 rhye kernel: usb 5-1: Product: USB Audio CODEC
Oct 13 22:39:02 rhye kernel: usb 5-1: Manufacturer: Burr-Brown from TI
Oct 13 22:39:02 rhye kernel: usb 5-1: hotplug
Oct 13 22:39:02 rhye kernel: usb 5-1: adding 5-1:1.0 (config #1, interface
0)
Oct 13 22:39:02 rhye kernel: usb 5-1:1.0: hotplug
Oct 13 22:39:02 rhye kernel: snd-usb-audio 5-1:1.0: usb_probe_interface
Oct 13 22:39:02 rhye kernel: snd-usb-audio 5-1:1.0: usb_probe_interface -
got id
Oct 13 22:39:02 rhye kernel: usb 5-1: adding 5-1:1.1 (config #1, interface
1)
Oct 13 22:39:02 rhye kernel: usb 5-1:1.1: hotplug
Oct 13 22:39:02 rhye kernel: usb 5-1: adding 5-1:1.2 (config #1, interface
2)
Oct 13 22:39:02 rhye kernel: usb 5-1:1.2: hotplug
Oct 13 22:39:02 rhye kernel: usb 5-1: adding 5-1:1.3 (config #1, interface
3)
Oct 13 22:39:02 rhye kernel: usb 5-1:1.3: hotplug
Oct 13 22:39:02 rhye kernel: hub 5-0:1.0: state 5 ports 2 chg 0000 evt 0002


Any ideas how can I get the microphone working?

Thanks,
Best regards,
Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14  5:43 USB headset problem Szekeres István
@ 2005-10-14  8:00 ` Martin Habets
  2005-10-14  9:22   ` Szekeres István
  2005-10-14  8:07 ` Clemens Ladisch
  1 sibling, 1 reply; 17+ messages in thread
From: Martin Habets @ 2005-10-14  8:00 UTC (permalink / raw)
  To: alsa-devel

On Fri, Oct 14, 2005 at 07:43:35AM +0200, Szekeres István wrote:
> Hi,
> 
> This is the latest git kernel snapshot.
> 
> I've just bought a "Gembird EHS-USB" headset (this is with a microphone).
> Audio playback is OK, but recording is not. Applications do not find the
> "capture channel". E.g. alsamixer shows only the PCM channel, but when I try
> to switch to "capture view", it quits with:

In the dmesg output I could not see snd-usb-audio being loaded. Could you
check with lsmod if that module gets loaded, and modprobe it if it is not
loaded. Also, check if there is acapture device in /proc/asound/devices
for this "card".

> alsamixer: function snd_mixer_find_selem() failed: Invalid argument

Could you post the output of "amixer"?

Martin


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14  5:43 USB headset problem Szekeres István
  2005-10-14  8:00 ` Martin Habets
@ 2005-10-14  8:07 ` Clemens Ladisch
  2005-10-14  9:17   ` Szekeres István
  1 sibling, 1 reply; 17+ messages in thread
From: Clemens Ladisch @ 2005-10-14  8:07 UTC (permalink / raw)
  To: Szekeres István; +Cc: alsa-devel

Szekeres István wrote:
> I've just bought a "Gembird EHS-USB" headset (this is with a microphone).
> Audio playback is OK, but recording is not. Applications do not find the
> "capture channel".

Does something show up in the output of "arecord -l"?

> E.g. alsamixer shows only the PCM channel, but when I try to
> switch to "capture view", it quits with:
>
> alsamixer: function snd_mixer_find_selem() failed: Invalid argument

Your device does not have any capture mixer elements.

Old versions of alsamixer had a bug that would cause it to crash like
above in this case.


HTH
Clemens



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14  8:07 ` Clemens Ladisch
@ 2005-10-14  9:17   ` Szekeres István
  2005-10-14 10:51     ` Clemens Ladisch
  0 siblings, 1 reply; 17+ messages in thread
From: Szekeres István @ 2005-10-14  9:17 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi,

On Fri, Oct 14, 2005 at 10:07:30AM +0200, Clemens Ladisch wrote:
> Szekeres István wrote:
> > I've just bought a "Gembird EHS-USB" headset (this is with a microphone).
> > Audio playback is OK, but recording is not. Applications do not find the
> > "capture channel".
> 
> Does something show up in the output of "arecord -l"?

card 1: default [USB Audio CODEC ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

> 
> > E.g. alsamixer shows only the PCM channel, but when I try to
> > switch to "capture view", it quits with:
> >
> > alsamixer: function snd_mixer_find_selem() failed: Invalid argument
> 
> Your device does not have any capture mixer elements.
> 
> Old versions of alsamixer had a bug that would cause it to crash like
> above in this case.

This is AlsaMixer v1.0.9a.

Now I'm a bit confused. Do I have a problem at all? :)
If arecord seems to find it, but there is no mixer
for it, does this mean that the microphone is visible for alsa but no
recording level can be set for it? 
Afternoon at home I have to experiment with it a little more..

Thanks,
Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14  8:00 ` Martin Habets
@ 2005-10-14  9:22   ` Szekeres István
  0 siblings, 0 replies; 17+ messages in thread
From: Szekeres István @ 2005-10-14  9:22 UTC (permalink / raw)
  To: alsa-devel

Hi,

> > I've just bought a "Gembird EHS-USB" headset (this is with a microphone).
> > Audio playback is OK, but recording is not. Applications do not find the
> > "capture channel". E.g. alsamixer shows only the PCM channel, but when I try
> > to switch to "capture view", it quits with:
> 
> In the dmesg output I could not see snd-usb-audio being loaded. Could you
> check with lsmod if that module gets loaded, and modprobe it if it is not
> loaded. Also, check if there is acapture device in /proc/asound/devices
> for this "card".

the module is loaded and the playback is fine. Only recording is a problem..

/proc/asound/devices:

 48: [1- 0]: digital audio playback
 56: [1- 0]: digital audio capture
 32: [1- 0]: ctl

> Could you post the output of "amixer"?

Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 128
  Front Left: Playback 128 [100%] [on]
  Front Right: Playback 128 [100%] [on]

Thanks,
Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14  9:17   ` Szekeres István
@ 2005-10-14 10:51     ` Clemens Ladisch
  2005-10-14 20:21       ` Szekeres István
  0 siblings, 1 reply; 17+ messages in thread
From: Clemens Ladisch @ 2005-10-14 10:51 UTC (permalink / raw)
  To: Szekeres István; +Cc: alsa-devel

Szekeres István wrote:
> Now I'm a bit confused. Do I have a problem at all? :)

No.

> If arecord seems to find it, but there is no mixer for it, does
> this mean that the microphone is visible for alsa but no recording
> level can be set for it?

Indeed.


Regards,
Clemens



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14 10:51     ` Clemens Ladisch
@ 2005-10-14 20:21       ` Szekeres István
  2005-10-14 22:05         ` Szekeres István
  2005-10-17  7:04         ` Clemens Ladisch
  0 siblings, 2 replies; 17+ messages in thread
From: Szekeres István @ 2005-10-14 20:21 UTC (permalink / raw)
  To: alsa-devel

> > Now I'm a bit confused. Do I have a problem at all? :)
> 
> No.

Indeed. The microphone is really working. Now the only problem is that I
tried it under skype (that's why I bought the headset), and under skype it
is not working at all (strace revealed that skype is writing 0s to the sound
device) - so I'm afraid this problem is out of the scope of this mailing
list.

Other applications (e.g. gnomemeeting) are working correctly - both for
playback and recording through the microphone.

Thanks for the help anyways. At least now I know that the problem is not in
the headset.

Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14 20:21       ` Szekeres István
@ 2005-10-14 22:05         ` Szekeres István
  2005-10-17 10:27           ` Takashi Iwai
  2005-10-17  7:04         ` Clemens Ladisch
  1 sibling, 1 reply; 17+ messages in thread
From: Szekeres István @ 2005-10-14 22:05 UTC (permalink / raw)
  To: alsa-devel

On Fri, Oct 14, 2005 at 10:21:53PM +0200, Szekeres István wrote:
> Indeed. The microphone is really working. Now the only problem is that I
> tried it under skype (that's why I bought the headset), and under skype it
> is not working at all (strace revealed that skype is writing 0s to the sound
> device) - so I'm afraid this problem is out of the scope of this mailing
> list.

Ok, after some experimenting the results are the following:

- Using latest git version of the kernel -> skype is not working
- Using 2.6.12.5 -> skype is working
- Other apps are working in both versions.

How can I investigate why does not skype working in case of the git version?

Thanks,
Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14 20:21       ` Szekeres István
  2005-10-14 22:05         ` Szekeres István
@ 2005-10-17  7:04         ` Clemens Ladisch
  1 sibling, 0 replies; 17+ messages in thread
From: Clemens Ladisch @ 2005-10-17  7:04 UTC (permalink / raw)
  To: Szekeres István; +Cc: alsa-devel

Szekeres István wrote:
> ... under skype it is not working at all (strace revealed that
> skype is writing 0s to the sound device)

Does it read non-zero data?


Regards,
Clemens



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-14 22:05         ` Szekeres István
@ 2005-10-17 10:27           ` Takashi Iwai
  2005-10-17 12:40             ` Szekeres István
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2005-10-17 10:27 UTC (permalink / raw)
  To: Szekeres István; +Cc: alsa-devel

At Sat, 15 Oct 2005 00:05:39 +0200,
Szekeres István wrote:
> 
> On Fri, Oct 14, 2005 at 10:21:53PM +0200, Szekeres István wrote:
> > Indeed. The microphone is really working. Now the only problem is that I
> > tried it under skype (that's why I bought the headset), and under skype it
> > is not working at all (strace revealed that skype is writing 0s to the sound
> > device) - so I'm afraid this problem is out of the scope of this mailing
> > list.
> 
> Ok, after some experimenting the results are the following:
> 
> - Using latest git version of the kernel -> skype is not working
> - Using 2.6.12.5 -> skype is working
> - Other apps are working in both versions.
> 
> How can I investigate why does not skype working in case of the git version?

It's important to know whether it's a problem of usb-audio or the OSS
emulation.

First, you can try aoss wrapper for the user-space OSS emulation.

Also, try "buggy-ptr" option for oss proc file (see
ALSA-Configuration.txt).  This is a newly added option for the apps
which assume the broken implementation.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-17 12:40             ` Szekeres István
@ 2005-10-17 12:10               ` Takashi Iwai
  2005-10-18 19:46                 ` Szekeres István
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2005-10-17 12:10 UTC (permalink / raw)
  To: Szekeres István; +Cc: alsa-devel

At Mon, 17 Oct 2005 14:40:12 +0200,
Szekeres István wrote:
> 
> > > On Fri, Oct 14, 2005 at 10:21:53PM +0200, Szekeres István wrote:
> > > > Indeed. The microphone is really working. Now the only problem is that I
> > > > tried it under skype (that's why I bought the headset), and under skype it
> > > > is not working at all (strace revealed that skype is writing 0s to the sound
> > > > device) - so I'm afraid this problem is out of the scope of this mailing
> > > > list.
> > > 
> > > Ok, after some experimenting the results are the following:
> > > 
> > > - Using latest git version of the kernel -> skype is not working
> > > - Using 2.6.12.5 -> skype is working
> > > - Other apps are working in both versions.
> > > 
> > > How can I investigate why does not skype working in case of the git version?
> > 
> > It's important to know whether it's a problem of usb-audio or the OSS
> > emulation.
> > 
> > First, you can try aoss wrapper for the user-space OSS emulation.
> 
> I already tried aoss, the result is a big fat SIGSEGV.

That's more interesting.
Can you get a stack trace via gdb?


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-17 10:27           ` Takashi Iwai
@ 2005-10-17 12:40             ` Szekeres István
  2005-10-17 12:10               ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Szekeres István @ 2005-10-17 12:40 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

> > On Fri, Oct 14, 2005 at 10:21:53PM +0200, Szekeres István wrote:
> > > Indeed. The microphone is really working. Now the only problem is that I
> > > tried it under skype (that's why I bought the headset), and under skype it
> > > is not working at all (strace revealed that skype is writing 0s to the sound
> > > device) - so I'm afraid this problem is out of the scope of this mailing
> > > list.
> > 
> > Ok, after some experimenting the results are the following:
> > 
> > - Using latest git version of the kernel -> skype is not working
> > - Using 2.6.12.5 -> skype is working
> > - Other apps are working in both versions.
> > 
> > How can I investigate why does not skype working in case of the git version?
> 
> It's important to know whether it's a problem of usb-audio or the OSS
> emulation.
> 
> First, you can try aoss wrapper for the user-space OSS emulation.

I already tried aoss, the result is a big fat SIGSEGV.

Best regards,
Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-18 19:46                 ` Szekeres István
@ 2005-10-18 19:13                   ` Lee Revell
  2005-10-19  9:28                     ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Lee Revell @ 2005-10-18 19:13 UTC (permalink / raw)
  To: Szekeres István; +Cc: Takashi Iwai, alsa-devel

On Tue, 2005-10-18 at 21:46 +0200, Szekeres István wrote:
> Hi,
> 
> > > I already tried aoss, the result is a big fat SIGSEGV.
> > 
> > That's more interesting.
> > Can you get a stack trace via gdb?
> 
> I have a stack trace but I think a patch for the solution is more useful ;-)
> 
> I don't know if it is necessary or useful, but:
> Signed-off-by: Szekeres Istvan <szekeres@iii.hu>
> 
> --- alsa-oss.c~ 2005-10-18 21:04:21.000000000 +0200
> +++ alsa-oss.c  2005-10-18 21:04:21.000000000 +0200
> @@ -344,10 +344,13 @@
>  int fcntl(int fd, int cmd, ...)
>  {
>         va_list args;
>         void *arg;
> 
> +       if (!initialized)
> +               initialize();
> +

I believe this has been fixed in ALSA CVS for weeks.

Lee



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-17 12:10               ` Takashi Iwai
@ 2005-10-18 19:46                 ` Szekeres István
  2005-10-18 19:13                   ` Lee Revell
  0 siblings, 1 reply; 17+ messages in thread
From: Szekeres István @ 2005-10-18 19:46 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hi,

> > I already tried aoss, the result is a big fat SIGSEGV.
> 
> That's more interesting.
> Can you get a stack trace via gdb?

I have a stack trace but I think a patch for the solution is more useful ;-)

I don't know if it is necessary or useful, but:
Signed-off-by: Szekeres Istvan <szekeres@iii.hu>

--- alsa-oss.c~ 2005-10-18 21:04:21.000000000 +0200
+++ alsa-oss.c  2005-10-18 21:04:21.000000000 +0200
@@ -344,10 +344,13 @@
 int fcntl(int fd, int cmd, ...)
 {
        va_list args;
        void *arg;

+       if (!initialized)
+               initialize();
+
        va_start(args, cmd);
        arg = va_arg(args, void *);
        va_end(args);
        if (fd < 0 || fd >= open_max || fds[fd] == NULL)
                return _fcntl(fd, cmd, arg);


Next thing is to compare the kernel oss emulation with aoss on a non-working
kernel.

Best regards,
Szekeres Istvan


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-18 19:13                   ` Lee Revell
@ 2005-10-19  9:28                     ` Takashi Iwai
  2005-10-19  9:40                       ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2005-10-19  9:28 UTC (permalink / raw)
  To: Lee Revell; +Cc: Szekeres István, alsa-devel

At Tue, 18 Oct 2005 15:13:32 -0400,
Lee Revell wrote:
> 
> On Tue, 2005-10-18 at 21:46 +0200, Szekeres István wrote:
> > Hi,
> > 
> > > > I already tried aoss, the result is a big fat SIGSEGV.
> > > 
> > > That's more interesting.
> > > Can you get a stack trace via gdb?
> > 
> > I have a stack trace but I think a patch for the solution is more useful ;-)
> > 
> > I don't know if it is necessary or useful, but:
> > Signed-off-by: Szekeres Istvan <szekeres@iii.hu>
> > 
> > --- alsa-oss.c~ 2005-10-18 21:04:21.000000000 +0200
> > +++ alsa-oss.c  2005-10-18 21:04:21.000000000 +0200
> > @@ -344,10 +344,13 @@
> >  int fcntl(int fd, int cmd, ...)
> >  {
> >         va_list args;
> >         void *arg;
> > 
> > +       if (!initialized)
> > +               initialize();
> > +
> 
> I believe this has been fixed in ALSA CVS for weeks.

Yep, that's why I wrote to try 1.0.10rc2...


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* Re: USB headset problem
  2005-10-19  9:28                     ` Takashi Iwai
@ 2005-10-19  9:40                       ` Takashi Iwai
  0 siblings, 0 replies; 17+ messages in thread
From: Takashi Iwai @ 2005-10-19  9:40 UTC (permalink / raw)
  To: Lee Revell; +Cc: Szekeres István, alsa-devel

At Wed, 19 Oct 2005 11:28:12 +0200,
I wrote:
> 
> At Tue, 18 Oct 2005 15:13:32 -0400,
> Lee Revell wrote:
> > 
> > On Tue, 2005-10-18 at 21:46 +0200, Szekeres István wrote:
> > > Hi,
> > > 
> > > > > I already tried aoss, the result is a big fat SIGSEGV.
> > > > 
> > > > That's more interesting.
> > > > Can you get a stack trace via gdb?
> > > 
> > > I have a stack trace but I think a patch for the solution is more useful ;-)
> > > 
> > > I don't know if it is necessary or useful, but:
> > > Signed-off-by: Szekeres Istvan <szekeres@iii.hu>
> > > 
> > > --- alsa-oss.c~ 2005-10-18 21:04:21.000000000 +0200
> > > +++ alsa-oss.c  2005-10-18 21:04:21.000000000 +0200
> > > @@ -344,10 +344,13 @@
> > >  int fcntl(int fd, int cmd, ...)
> > >  {
> > >         va_list args;
> > >         void *arg;
> > > 
> > > +       if (!initialized)
> > > +               initialize();
> > > +
> > 
> > I believe this has been fixed in ALSA CVS for weeks.
> 
> Yep, that's why I wrote to try 1.0.10rc2...

Oh apparently I didn't suggest it in this thread.
Anyway, it's already fixed on 1.0.10rc2.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

* usb headset problem
@ 2008-05-16 22:35 Anselm Reisner
  0 siblings, 0 replies; 17+ messages in thread
From: Anselm Reisner @ 2008-05-16 22:35 UTC (permalink / raw)
  To: alsa-devel

Hello

Headset: Plantronics DSP 400 (047f:0ca1)
Distro: Ubuntu 8.04
output from tsalsa script (from #alsa) : http://nopaste.com/p/a8yymxldp


Problemdescription:
After some time(~0.5-1.5 hours) listening to music my headset suddenly
stops playing. If I try:

When the headset crashes dmesg says
ALSA /usr/src/modules/alsa-driver/usb/usbaudio.c:943: timeout: still 3
active urbs... 
at the beginning the number of urbs were 4 but I blacklisted the usbhid
module (my headset has a volumecontrol) since then it hangs by 3.
/etc/init.d/alsa-utils stop cardid I get the message 
"amixer: Mixer hw:1 load error: Invalid argument"
I also downloaded alsa-source (from the reposity)and built the
alsa-driver. Because

when I try sudo alsa force-unload or modprobe -r  
modprobe hangs and I can't Terminate it.

When the headset crashes dmesg says
ALSA /usr/src/modules/alsa-driver/usb/usbaudio.c:943: timeout: still 3
active urbs... 
at the beginning the number of urbs were 4 but I blacklisted the usbhid
module (my headset has a volumecontrol) since then it hangs by 3.

So the only thing what I can do is reboot to get it working again. It's
really annoying.
I first asked at #also for help but they couldn't help (except that it's
maybe somehow related to the usb subsystem) me but gave me the advice to
post my problem here. 

Thanks 

Anselm

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2008-05-16 22:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14  5:43 USB headset problem Szekeres István
2005-10-14  8:00 ` Martin Habets
2005-10-14  9:22   ` Szekeres István
2005-10-14  8:07 ` Clemens Ladisch
2005-10-14  9:17   ` Szekeres István
2005-10-14 10:51     ` Clemens Ladisch
2005-10-14 20:21       ` Szekeres István
2005-10-14 22:05         ` Szekeres István
2005-10-17 10:27           ` Takashi Iwai
2005-10-17 12:40             ` Szekeres István
2005-10-17 12:10               ` Takashi Iwai
2005-10-18 19:46                 ` Szekeres István
2005-10-18 19:13                   ` Lee Revell
2005-10-19  9:28                     ` Takashi Iwai
2005-10-19  9:40                       ` Takashi Iwai
2005-10-17  7:04         ` Clemens Ladisch
  -- strict thread matches above, loose matches on Subject: below --
2008-05-16 22:35 usb " Anselm Reisner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.