[alsa-devel] alsa compliance test: H340 (USB audio) playback / capture rate asymmetry bug?

Hin-Tak Leung htl10 at users.sourceforge.net
Thu Sep 12 17:34:49 CEST 2019


 On Thursday, 12 September 2019, 16:23:04 BST, Clemens Ladisch <clemens at ladisch.de> wrote:


Hin-Tak Leung wrote:

> > ID 046d:0a38 Logitech, Inc. Headset H340

> Please show the output of "lsusb -v" for this device.

Here it is - not sure about the "can't get device qualifier" "... debug descriptor" part just before the end. The head set seems to work okay as a consumer device; for our application/usage, in general, we like devices to have capture / playback rate agreeing, even if both are off.

# lsusb -v -d 046d:0a38

Bus 001 Device 094: ID 046d:0a38 Logitech, Inc. Headset H340
Device Descriptor:
 bLength 18
 bDescriptorType 1
 bcdUSB 2.00
 bDeviceClass 0 
 bDeviceSubClass 0 
 bDeviceProtocol 0 
 bMaxPacketSize0 64
 idVendor 0x046d Logitech, Inc.
 idProduct 0x0a38 Headset H340
 bcdDevice 1.15
 iManufacturer 1 Logitech Inc.
 iProduct 2 Logitech USB Headset H340
 iSerial 0 
 bNumConfigurations 1
 Configuration Descriptor:
 bLength 9
 bDescriptorType 2
 wTotalLength 0x00eb
 bNumInterfaces 4
 bConfigurationValue 1
 iConfiguration 0 
 bmAttributes 0x80
 (Bus Powered)
 MaxPower 120mA
 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 0x004f
 bInCollection 2
 baInterfaceNr(0) 1
 baInterfaceNr(1) 2
 AudioControl Interface Descriptor:
 bLength 12
 bDescriptorType 36
 bDescriptorSubtype 2 (INPUT_TERMINAL)
 bTerminalID 2
 wTerminalType 0x0101 USB Streaming
 bAssocTerminal 0
 bNrChannels 2
 wChannelConfig 0x0003
 Left Front (L)
 Right Front (R)
 iChannelNames 0 
 iTerminal 0 
 AudioControl Interface Descriptor:
 bLength 12
 bDescriptorType 36
 bDescriptorSubtype 2 (INPUT_TERMINAL)
 bTerminalID 1
 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 3
 wTerminalType 0x0101 USB Streaming
 bAssocTerminal 0
 bSourceID 10
 iTerminal 0 
 AudioControl Interface Descriptor:
 bLength 9
 bDescriptorType 36
 bDescriptorSubtype 3 (OUTPUT_TERMINAL)
 bTerminalID 4
 wTerminalType 0x0301 Speaker
 bAssocTerminal 0
 bSourceID 5
 iTerminal 0 
 AudioControl Interface Descriptor:
 bLength 10
 bDescriptorType 36
 bDescriptorSubtype 6 (FEATURE_UNIT)
 bUnitID 5
 bSourceID 2
 bControlSize 1
 bmaControls(0) 0x01
 Mute Control
 bmaControls(1) 0x02
 Volume Control
 bmaControls(2) 0x02
 Volume Control
 iFeature 0 
 AudioControl Interface Descriptor:
 bLength 10
 bDescriptorType 36
 bDescriptorSubtype 6 (FEATURE_UNIT)
 bUnitID 6
 bSourceID 1
 bControlSize 1
 bmaControls(0) 0x03
 Mute Control
 Volume Control
 bmaControls(1) 0x00
 bmaControls(2) 0x00
 iFeature 0 
 AudioControl Interface Descriptor:
 bLength 7
 bDescriptorType 36
 bDescriptorSubtype 5 (SELECTOR_UNIT)
 bUnitID 10
 bNrInPins 1
 baSourceID(0) 6
 iSelector 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 2
 bInterfaceClass 1 Audio
 bInterfaceSubClass 2 Streaming
 bInterfaceProtocol 0 
 iInterface 0 
 AudioStreaming Interface Descriptor:
 bLength 7
 bDescriptorType 36
 bDescriptorSubtype 1 (AS_GENERAL)
 bTerminalLink 2
 bDelay 1 frames
 wFormatTag 0x0001 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 0x01 EP 1 OUT
 bmAttributes 5
 Transfer Type Isochronous
 Synch Type Asynchronous
 Usage Type Data
 wMaxPacketSize 0x00c8 1x 200 bytes
 bInterval 1
 bRefresh 0
 bSynchAddress 131
 AudioStreaming Endpoint Descriptor:
 bLength 7
 bDescriptorType 37
 bDescriptorSubtype 1 (EP_GENERAL)
 bmAttributes 0x00
 bLockDelayUnits 0 Undefined
 wLockDelay 0x0000
 Endpoint Descriptor:
 bLength 9
 bDescriptorType 5
 bEndpointAddress 0x83 EP 3 IN
 bmAttributes 1
 Transfer Type Isochronous
 Synch Type None
 Usage Type Data
 wMaxPacketSize 0x0003 1x 3 bytes
 bInterval 1
 bRefresh 5
 bSynchAddress 0
 Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber 2
 bAlternateSetting 0
 bNumEndpoints 0
 bInterfaceClass 1 Audio
 bInterfaceSubClass 2 Streaming
 bInterfaceProtocol 0 
 iInterface 0 
 Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber 2
 bAlternateSetting 1
 bNumEndpoints 1
 bInterfaceClass 1 Audio
 bInterfaceSubClass 2 Streaming
 bInterfaceProtocol 0 
 iInterface 0 
 AudioStreaming Interface Descriptor:
 bLength 7
 bDescriptorType 36
 bDescriptorSubtype 1 (AS_GENERAL)
 bTerminalLink 3
 bDelay 1 frames
 wFormatTag 0x0001 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 0x81 EP 1 IN
 bmAttributes 5
 Transfer Type Isochronous
 Synch Type Asynchronous
 Usage Type Data
 wMaxPacketSize 0x00c8 1x 200 bytes
 bInterval 1
 bRefresh 0
 bSynchAddress 0
 AudioStreaming Endpoint Descriptor:
 bLength 7
 bDescriptorType 37
 bDescriptorSubtype 1 (EP_GENERAL)
 bmAttributes 0x00
 bLockDelayUnits 0 Undefined
 wLockDelay 0x0000
 Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber 3
 bAlternateSetting 0
 bNumEndpoints 1
 bInterfaceClass 3 Human Interface Device
 bInterfaceSubClass 0 
 bInterfaceProtocol 0 
 iInterface 0 
 HID Device Descriptor:
 bLength 9
 bDescriptorType 33
 bcdHID 1.11
 bCountryCode 0 Not supported
 bNumDescriptors 1
 bDescriptorType 34 Report
 wDescriptorLength 111
 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 0x0004 1x 4 bytes
 bInterval 10
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
 (Bus Powered)
#  


More information about the Alsa-devel mailing list