On Fri, Aug 07, 2020 at 01:08:17PM +0200, Marcus Glocker wrote: > On Fri, 7 Aug 2020 12:31:39 +0200 > Alexandre Ratchov <a...@caoua.org> wrote: > > > On Fri, Aug 07, 2020 at 10:08:25AM +0100, Patrick Harper wrote: > > > I think asynchronous transfers don't work with xhci right now, > > > which appears to be how your DAC works. If you can disable USB 3.0 > > > in the BIOS/UEFI setup program it should work. > > xhci(4) does support isochronous transfers. > > > This device is usb1.1, it uses control and isochronous transfers that > > xhci supports. Strangely, even certain control transfers fail with > > this particular device. > > Hmm weired. I'm still puzzled by the lsusb output which seem to miss > most of the uaudio device descritpor. Could that be the reason? > > jmc: > Can you please provide usbdevs -v output and then only output of lsusb > for that specific uaudio device from the ehci and from the xhci machine? > > # usbdevs -v > ... > # lsusb > ... > # lsusb -d xxxx:xxxx -vvv > ... > > I would like compare if the lsusb output differs between ehci and xhci. >
hi. details below. first the machine that the device works on: # usbdevs -v Controller /dev/usb0: addr 01: 8086:0000 Intel, EHCI root hub high speed, self powered, config 1, rev 1.00 driver: uhub0 addr 02: 8087:0024 Intel, Rate Matching Hub high speed, self powered, config 1, rev 0.00 driver: uhub2 Controller /dev/usb1: addr 01: 8086:0000 Intel, EHCI root hub high speed, self powered, config 1, rev 1.00 driver: uhub1 addr 02: 8087:0024 Intel, Rate Matching Hub high speed, self powered, config 1, rev 0.00 driver: uhub3 addr 03: 0a5c:5800 Broadcom Corp, 5880 full speed, power 100 mA, unconfigured, rev 1.01, iSerial 0123456789ABCD driver: ugen0 addr 04: 04d8:f0bf Cyrus Audio, Cyrus soundKey full speed, power 50 mA, config 1, rev 1.00, iSerial 001116 driver: uaudio0 driver: uhidev0 # lsusb Bus 000 Device 001: ID 8086:0000 Intel Corp. Bus 000 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 8086:0000 Intel Corp. Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor Bus 001 Device 004: ID 04d8:f0bf Microchip Technology, Inc. Bus 001 Device 004: ID 04d8:f0bf Microchip Technology, Inc. Bus 000 Device 001: ID 8086:0000 Intel Corp. Bus 000 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 8086:0000 Intel Corp. Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor Bus 001 Device 004: ID 04d8:f0bf Microchip Technology, Inc. # lsusb -d 04d8:f0bf -vvv Bus 001 Device 004: ID 04d8:f0bf Microchip Technology, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04d8 Microchip Technology, Inc. idProduct 0xf0bf bcdDevice 1.00 iManufacturer 1 Cyrus Audio iProduct 2 Cyrus soundKey iSerial 4 001116 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 221 bNumInterfaces 3 bConfigurationValue 1 iConfiguration 3 Main Configuration bmAttributes 0x80 (Bus Powered) MaxPower 50mA 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 9 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 40 bInCollection 1 baInterfaceNr( 0) 1 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 10 bDescriptorType 36 bDescriptorSubtype 6 (FEATURE_UNIT) bUnitID 2 bSourceID 1 bControlSize 1 bmaControls( 0) 0x03 Mute Control Volume Control bmaControls( 1) 0x00 bmaControls( 2) 0x00 iFeature 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 3 wTerminalType 0x0301 Speaker bAssocTerminal 0 bSourceID 2 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 2 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 1 bDelay 1 frames wFormatTag 1 PCM AudioStreaming Interface Descriptor: bLength 20 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 3 bBitResolution 24 bSamFreqType 4 Discrete tSamFreq[ 0] 96000 tSamFreq[ 1] 88200 tSamFreq[ 2] 48000 tSamFreq[ 3] 44100 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0246 1x 582 bytes bInterval 1 bRefresh 0 bSynchAddress 129 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0 Undefined Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x81 EP 1 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 1 bAlternateSetting 2 bNumEndpoints 2 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 1 bDelay 1 frames wFormatTag 1 PCM AudioStreaming Interface Descriptor: bLength 20 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType 4 Discrete tSamFreq[ 0] 96000 tSamFreq[ 1] 88200 tSamFreq[ 2] 48000 tSamFreq[ 3] 44100 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0184 1x 388 bytes bInterval 1 bRefresh 0 bSynchAddress 129 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0 Undefined Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x81 EP 1 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 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.11 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 34 Report Descriptor: (length is 34) Item(Global): Usage Page, data= [ 0x00 0xff ] 65280 (null) Item(Local ): Usage, data= [ 0x01 ] 1 (null) Item(Main ): Collection, data= [ 0x01 ] 1 Application Item(Local ): Usage, data= [ 0x01 ] 1 (null) Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x40 ] 64 Item(Main ): Input, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Local ): Usage, data= [ 0x01 ] 1 (null) Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x40 ] 64 Item(Main ): Output, data= [ 0x02 ] 2 Data Variable 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 0x82 EP 2 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Device Status: 0x5500 (Bus Powered) then the machine it doesn;t work on: # usbdevs -v Controller /dev/usb0: addr 01: 1022:0000 AMD, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub0 addr 02: 04d8:f0bf Cyrus Audio, Cyrus soundKey full speed, power 50 mA, config 1, rev 1.00, iSerial 001116 driver: uaudio0 driver: uhidev1 Controller /dev/usb1: addr 01: 1022:0000 AMD, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub1 addr 02: 04f3:02f4 Elan, 2.4G Wireless Mouse low speed, power 100 mA, config 1, rev 9.01 driver: uhidev0 addr 03: 0bda:565a CN0HK46K8LG00057HD89A02, Integrated_Webcam_HD high speed, power 500 mA, config 1, rev 81.76, iSerial 200901010001 driver: uvideo0 addr 04: 8087:0029 Intel, Bluetooth full speed, self powered, config 1, rev 0.01 driver: ugen0 # lsusb Bus 000 Device 001: ID 1022:0000 Shinko Shoji Co., Ltd Bus 000 Device 002: ID 04d8:f0bf Microchip Technology, Inc. Bus 001 Device 001: ID 1022:0000 Shinko Shoji Co., Ltd Bus 001 Device 002: ID 04f3:02f4 Elan Microelectronics Corp. 2.4G Cordless Mouse Bus 001 Device 003: ID 0bda:565a Realtek Semiconductor Corp. Bus 001 Device 004: ID 8087:0029 Intel Corp. # lsusb -d 04d8:f0bf -vvv Bus 000 Device 002: ID 04d8:f0bf Microchip Technology, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04d8 Microchip Technology, Inc. idProduct 0xf0bf bcdDevice 1.00 iManufacturer 1 (error) iProduct 2 (error) iSerial 4 (error) bNumConfigurations 1 Device Status: 0x694d Self Powered Test Mode Debug Mode