[alsa-devel] Adding support for CMEDIA USB2.0 High-Speed True HD Audio

Jean-Philippe Guillemin h1p8r10n at gmail.com
Tue Feb 6 08:12:14 CET 2018


Anyone ?

2018-02-02 15:36 GMT+01:00 Jean-Philippe Guillemin <h1p8r10n at gmail.com>:

> Hi,
>
> CMEDIA USB2.0 High-Speed True HD Audio has iec958 output on device 2 and
> iec958 input on device 0.
>
> root[~]# cat /proc/asound/cards
>  0 [Audio          ]: USB-Audio - USB2.0 High-Speed True HD Audio
>                       CMEDIA USB2.0 High-Speed True HD Audio at
> usb-0000:00:12.2-2, high speed
>
> I'm trying to create a mapping in USB-Audio.conf :
>  # If a device does not use the first PCM device for digital data, the
> device
>   # number for the iec958 device can be changed here.
>   USB-Audio.pcm.iec958_device {
>      # "NoiseBlaster 3000" 42
>      "USB Sound Blaster HD" 1
>      "USB2.0 High-Speed True HD Audio" 2
>   ...
>
> But I never got a match on "USB2.0 High-Speed True HD Audio".
>
> Please could you provide me correct config ? I will test it and report
> results so that you can append this card to ALSA.
>
> Thanks
> (below lsusb output)
>
> root[~]# lsusb -v
> Bus 001 Device 009: ID 147a:e055 Formosa Industrial Computing, Inc.
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass          239 Miscellaneous Device
>   bDeviceSubClass         2
>   bDeviceProtocol         1 Interface Association
>   bMaxPacketSize0        64
>   idVendor           0x147a Formosa Industrial Computing, Inc.
>   idProduct          0xe055
>   bcdDevice            1.08
>   iManufacturer           1 CMEDIA
>   iProduct                2 USB2.0 High-Speed True HD Audio
>   iSerial                 0
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength         1170
>     bNumInterfaces          6
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0x80
>       (Bus Powered)
>     MaxPower              500mA
>     Interface Association:
>       bLength                 8
>       bDescriptorType        11
>       bFirstInterface         0
>       bInterfaceCount         5
>       bFunctionClass          1 Audio
>       bFunctionSubClass       0
>       bFunctionProtocol      32
>       iFunction               0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      1 Control Device
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioControl Interface Descriptor:
>         bLength                 9
>         bDescriptorType        36
>         bDescriptorSubtype      1 (HEADER)
>         bcdADC               2.00
>         bCategory              10
>         wTotalLength          378
>         bmControl            0x00
>       AudioControl Interface Descriptor:
>         bLength                17
>         bDescriptorType        36
>         bDescriptorSubtype      2 (INPUT_TERMINAL)
>         bTerminalID             1
>         wTerminalType      0x0101 USB Streaming
>         bAssocTerminal          0
>         bCSourceID             22
>         bNrChannels             0
>         bmChannelConfig   0x00000000
>         bmControls    0x0040
>           Cluster Control (read-only)
>         iChannelNames           0
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                17
>         bDescriptorType        36
>         bDescriptorSubtype      2 (INPUT_TERMINAL)
>         bTerminalID             2
>         wTerminalType      0x0101 USB Streaming
>         bAssocTerminal          0
>         bCSourceID             23
>         bNrChannels             0
>         bmChannelConfig   0x00000000
>         bmControls    0x0040
>           Cluster Control (read-only)
>         iChannelNames           0
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                17
>         bDescriptorType        36
>         bDescriptorSubtype      2 (INPUT_TERMINAL)
>         bTerminalID             3
>         wTerminalType      0x0201 Microphone
>         bAssocTerminal          0
>         bCSourceID             24
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         bmControls    0x0040
>           Cluster Control (read-only)
>         iChannelNames           0
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                17
>         bDescriptorType        36
>         bDescriptorSubtype      2 (INPUT_TERMINAL)
>         bTerminalID             4
>         wTerminalType      0x0603 Line Connector
>         bAssocTerminal          0
>         bCSourceID             24
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         bmControls    0x0040
>           Cluster Control (read-only)
>         iChannelNames           0
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                17
>         bDescriptorType        36
>         bDescriptorSubtype      2 (INPUT_TERMINAL)
>         bTerminalID             5
>         wTerminalType      0x0605 SPDIF interface
>         bAssocTerminal          0
>         bCSourceID             25
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         bmControls    0x0040
>           Cluster Control (read-only)
>         iChannelNames           0
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                12
>         bDescriptorType        36
>         bDescriptorSubtype      3 (OUTPUT_TERMINAL)
>         bTerminalID             6
>         wTerminalType      0x0301 Speaker
>         bAssocTerminal          0
>         bSourceID              11
>         bCSourceID             22
>         bmControls         0x0000
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                12
>         bDescriptorType        36
>         bDescriptorSubtype      3 (OUTPUT_TERMINAL)
>         bTerminalID             7
>         wTerminalType      0x0605 SPDIF interface
>         bAssocTerminal          0
>         bSourceID              12
>         bCSourceID             23
>         bmControls         0x0000
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                12
>         bDescriptorType        36
>         bDescriptorSubtype      3 (OUTPUT_TERMINAL)
>         bTerminalID             8
>         wTerminalType      0x0101 USB Streaming
>         bAssocTerminal          0
>         bSourceID              10
>         bCSourceID             24
>         bmControls         0x0000
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                12
>         bDescriptorType        36
>         bDescriptorSubtype      3 (OUTPUT_TERMINAL)
>         bTerminalID             9
>         wTerminalType      0x0101 USB Streaming
>         bAssocTerminal          0
>         bSourceID               5
>         bCSourceID             25
>         bmControls         0x0000
>         iTerminal               0
>       AudioControl Interface Descriptor:
>         bLength                10
>         bDescriptorType        36
>         bDescriptorSubtype      5 (SELECTOR_UNIT)
>         bUnitID                10
>         bNrInPins               3
>         baSource( 0)           13
>         baSource( 1)           14
>         baSource( 2)           15
>         bmControls           0x03
>           Selector Control (read/write)
>         iSelector               0
>       AudioControl Interface Descriptor:
>         bLength                42
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                11
>         bSourceID              18
>         bmaControls( 0)      0x00000003
>           Mute Control (read/write)
>         bmaControls( 1)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 2)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 3)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 4)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 5)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 6)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 7)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 8)      0x0000000c
>           Volume Control (read/write)
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                18
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                12
>         bSourceID               2
>         bmaControls( 0)      0x00000003
>           Mute Control (read/write)
>         bmaControls( 1)      0x00000000
>         bmaControls( 2)      0x00000000
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                18
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                13
>         bSourceID               3
>         bmaControls( 0)      0x00003003
>           Mute Control (read/write)
>           Automatic Gain Control (read/write)
>         bmaControls( 1)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 2)      0x0000000c
>           Volume Control (read/write)
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                18
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                14
>         bSourceID               4
>         bmaControls( 0)      0x00000003
>           Mute Control (read/write)
>         bmaControls( 1)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 2)      0x0000000c
>           Volume Control (read/write)
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                18
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                15
>         bSourceID              19
>         bmaControls( 0)      0x00000003
>           Mute Control (read/write)
>         bmaControls( 1)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 2)      0x0000000c
>           Volume Control (read/write)
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                18
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                16
>         bSourceID               3
>         bmaControls( 0)      0x00000003
>           Mute Control (read/write)
>         bmaControls( 1)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 2)      0x0000000c
>           Volume Control (read/write)
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                18
>         bDescriptorType        36
>         bDescriptorSubtype      6 (FEATURE_UNIT)
>         bUnitID                17
>         bSourceID               4
>         bmaControls( 0)      0x00000003
>           Mute Control (read/write)
>         bmaControls( 1)      0x0000000c
>           Volume Control (read/write)
>         bmaControls( 2)      0x0000000c
>           Volume Control (read/write)
>         iFeature                0
>       AudioControl Interface Descriptor:
>         bLength                28
>         bDescriptorType        36
>         bDescriptorSubtype      4 (MIXER_UNIT)
>         bUnitID                18
>         bNrPins                 3
>         baSourceID( 0)          1
>         baSourceID( 1)         16
>         baSourceID( 2)         17
>         bNrChannels             8
>         bmChannelConfig    0x0000063f
>           Front Left (FL)
>           Front Right (FR)
>           Front Center (FC)
>           Low Frequency Effects (LFE)
>           Back Left (BL)
>           Back Right (BR)
>           Side Left (SL)
>           Side Right (SR)
>         iChannelNames           0
>  00 00 00 00 00 00 00 00 00 00 00 00
>         bmControls         01
>           Cluster Control (read-only)
>         iMixer                 0
>       AudioControl Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      4 (MIXER_UNIT)
>         bUnitID                19
>         bNrPins                 2
>         baSourceID( 0)          3
>         baSourceID( 1)          4
>         bNrChannels             2
>         bmChannelConfig    0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>  00
>         bmControls         01
>           Cluster Control (read-only)
>         iMixer                 0
>       AudioControl Interface Descriptor:
>         bLength                 8
>         bDescriptorType        36
>         bDescriptorSubtype     10 (CLOCK_SOURCE)
>         bClockID               22
>         bmAttributes         0x07 Internal programmable Clock (synced to
> SOF)
>         bmControls           0x07
>           Clock Frequency Control (read/write)
>           Clock Validity Control (read-only)
>         bAssocTerminal          0
>         iClockSource            0
>       AudioControl Interface Descriptor:
>         bLength                 8
>         bDescriptorType        36
>         bDescriptorSubtype     10 (CLOCK_SOURCE)
>         bClockID               23
>         bmAttributes         0x07 Internal programmable Clock (synced to
> SOF)
>         bmControls           0x07
>           Clock Frequency Control (read/write)
>           Clock Validity Control (read-only)
>         bAssocTerminal          0
>         iClockSource            0
>       AudioControl Interface Descriptor:
>         bLength                 8
>         bDescriptorType        36
>         bDescriptorSubtype     10 (CLOCK_SOURCE)
>         bClockID               24
>         bmAttributes         0x03 Internal programmable Clock
>         bmControls           0x07
>           Clock Frequency Control (read/write)
>           Clock Validity Control (read-only)
>         bAssocTerminal          0
>         iClockSource            0
>       AudioControl Interface Descriptor:
>         bLength                 8
>         bDescriptorType        36
>         bDescriptorSubtype     10 (CLOCK_SOURCE)
>         bClockID               25
>         bmAttributes         0x00 External Clock
>         bmControls           0x07
>           Clock Frequency Control (read/write)
>           Clock Validity Control (read-only)
>         bAssocTerminal          0
>         iClockSource            0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x8f  EP 15 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0006  1x 6 bytes
>         bInterval               4
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           0
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              4 Output
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       1
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             8
>         bmChannelConfig   0x0000063f
>           Front Left (FL)
>           Front Right (FR)
>           Front Center (FC)
>           Low Frequency Effects (LFE)
>           Back Left (BL)
>           Back Right (BR)
>           Side Left (SL)
>           Side Right (SR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x01a0  1x 416 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       2
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             8
>         bmChannelConfig   0x0000063f
>           Front Left (FL)
>           Front Right (FR)
>           Front Center (FC)
>           Low Frequency Effects (LFE)
>           Back Left (BL)
>           Back Right (BR)
>           Side Left (SL)
>           Side Right (SR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0340  1x 832 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       3
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0068  1x 104 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       4
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x00d0  1x 208 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       5
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             6
>         bmChannelConfig   0x0000003f
>           Front Left (FL)
>           Front Right (FR)
>           Front Center (FC)
>           Low Frequency Effects (LFE)
>           Back Left (BL)
>           Back Right (BR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0138  1x 312 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       6
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             6
>         bmChannelConfig   0x0000003f
>           Front Left (FL)
>           Front Right (FR)
>           Front Center (FC)
>           Low Frequency Effects (LFE)
>           Back Left (BL)
>           Back Right (BR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0270  1x 624 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       7
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             4
>         bmChannelConfig   0x00000033
>           Front Left (FL)
>           Front Right (FR)
>           Back Left (BL)
>           Back Right (BR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x00d0  1x 208 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       8
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           1
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             4
>         bmChannelConfig   0x00000033
>           Front Left (FL)
>           Front Right (FR)
>           Back Left (BL)
>           Back Right (BR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x01a0  1x 416 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        2
>       bAlternateSetting       0
>       bNumEndpoints           0
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              5 SPDIF Output
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        2
>       bAlternateSetting       1
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           2
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x06  EP 6 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0068  1x 104 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        2
>       bAlternateSetting       2
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           2
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x06  EP 6 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x00d0  1x 208 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        2
>       bAlternateSetting       3
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           2
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             3
>         bmFormats         0x00001381
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             3 (FORMAT_TYPE_III)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x06  EP 6 OUT
>         bmAttributes           13
>           Transfer Type            Isochronous
>           Synch Type               Synchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0068  1x 104 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        3
>       bAlternateSetting       0
>       bNumEndpoints           0
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              6 Input
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        3
>       bAlternateSetting       1
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           8
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x88  EP 8 IN
>         bmAttributes            5
>           Transfer Type            Isochronous
>           Synch Type               Asynchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0068  1x 104 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        3
>       bAlternateSetting       2
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           8
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x88  EP 8 IN
>         bmAttributes            5
>           Transfer Type            Isochronous
>           Synch Type               Asynchronous
>           Usage Type               Data
>         wMaxPacketSize     0x00d0  1x 208 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        4
>       bAlternateSetting       0
>       bNumEndpoints           0
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              7 SPDIF Input
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        4
>       bAlternateSetting       1
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           9
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            2
>         bBitResolution         16
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x8a  EP 10 IN
>         bmAttributes            5
>           Transfer Type            Isochronous
>           Synch Type               Asynchronous
>           Usage Type               Data
>         wMaxPacketSize     0x0068  1x 104 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        4
>       bAlternateSetting       2
>       bNumEndpoints           1
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      2 Streaming
>       bInterfaceProtocol     32
>       iInterface              0
>       AudioStreaming Interface Descriptor:
>         bLength                16
>         bDescriptorType        36
>         bDescriptorSubtype      1 (AS_GENERAL)
>         bTerminalLink           9
>         bmControls           0x05
>           Active Alternate Setting Control (read-only)
>           Valid Alternate Setting Control (read-only)
>         bFormatType             1
>         bmFormats         0x00000001
>           PCM
>         bNrChannels             2
>         bmChannelConfig   0x00000003
>           Front Left (FL)
>           Front Right (FR)
>         iChannelNames           0
>       AudioStreaming Interface Descriptor:
>         bLength                 6
>         bDescriptorType        36
>         bDescriptorSubtype      2 (FORMAT_TYPE)
>         bFormatType             1 (FORMAT_TYPE_I)
>         bSubslotSize            4
>         bBitResolution         24
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x8a  EP 10 IN
>         bmAttributes            5
>           Transfer Type            Isochronous
>           Synch Type               Asynchronous
>           Usage Type               Data
>         wMaxPacketSize     0x00d0  1x 208 bytes
>         bInterval               1
>         AudioControl Endpoint Descriptor:
>           bLength                 8
>           bDescriptorType        37
>           bDescriptorSubtype      1 (EP_GENERAL)
>           bmAttributes         0x00
>           bmControls           0x00
>           bLockDelayUnits         0 Undefined
>           wLockDelay              0
>     Interface Association:
>       bLength                 8
>       bDescriptorType        11
>       bFirstInterface         5
>       bInterfaceCount         1
>       bFunctionClass          3 Human Interface Device
>       bFunctionSubClass       0
>       bFunctionProtocol       0
>       iFunction               0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        5
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         3 Human Interface Device
>       bInterfaceSubClass      0
>       bInterfaceProtocol      0
>       iInterface              0
>         HID Device Descriptor:
>           bLength                 9
>           bDescriptorType        33
>           bcdHID               1.00
>           bCountryCode            0 Not supported
>           bNumDescriptors         1
>           bDescriptorType        34 Report
>           wDescriptorLength      50
>          Report Descriptors:
>            ** UNAVAILABLE **
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x84  EP 4 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0010  1x 16 bytes
>         bInterval               4
> Device Qualifier (for other device speed):
>   bLength                10
>   bDescriptorType         6
>   bcdUSB               2.00
>   bDeviceClass          239 Miscellaneous Device
>   bDeviceSubClass         2
>   bDeviceProtocol         1 Interface Association
>   bMaxPacketSize0        64
>   bNumConfigurations      1
> Device Status:     0x0000
>   (Bus Powered)
>
> I'm trying to create a mapping in
>


More information about the Alsa-devel mailing list