Re: [LAU] Fedora 26 RT kernel question

From: Chris Caudle <chris@email-addr-hidden>
Date: Mon Dec 04 2017 - 22:22:17 EET

On Mon, December 4, 2017 1:52 pm, Fernando Lopez-Lezcano wrote:
> I just did a quick test on my oldish test laptop (Lenovo t510) running
> the Planet CCRMA rt kernel (4.13.15...), inserted a Tascam 4x4 USB2
> soundcard and everything seems to be running fine (both pulseaudio &
> jack).

OK, I guess that is good in general for PlanetCCRMA, but I still don't
have any good place to start with no error messages. I don't know where
to even start debugging a driver problem.

> Must be some bug that manifests on your hardware...
> What soundcard are you trying to use? On what hardware?
> What type of usb interface? (2 or 3)

An older Lexicon Lambda interface. It is up to 48k sample rate and 2
channel only, so it uses USB 1 speed interface.
Full info below in case Clemens or one of the other driver guys is aware
of any RT patches that affected snd_usb, or even just part of the USB
stack, I'm not using any other USB devices so if other device types are
broken as well I would not notice.

$ lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 2: Dev 2, If 1, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 2: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 2: Dev 2, If 4, Class=Application Specific Interface,
Driver=, 12M
    |__ Port 2: Dev 2, If 6, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 2: Dev 2, If 7, Class=Audio, Driver=snd-usb-audio, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M

I'm not sure why endpoint 3 is missing, maybe just a quirk of that device.
 I doubt that is relevant, I have never previously found that the RT
snd_usb driver had any problem, so unexpected that it does now.

$ sudo lsusb -v -D /dev/bus/usb/005/002
Device: ID 1210:0009 DigiTech
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 0
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x1210 DigiTech
  idProduct 0x0009
  bcdDevice 0.01
  iManufacturer 1 Lexicon
  iProduct 2 Lexicon Lambda
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 380
    bNumInterfaces 6
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 500mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 1 Audio
      bInterfaceSubClass 1 Control Device
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
      AudioControl Interface Descriptor:
        bLength 10
        bDescriptorType 36
        bDescriptorSubtype 1 (HEADER)
        bcdADC 1.00
        wTotalLength 52
        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 3 Lexicon Lambda In/Out
      AudioControl Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 3 (OUTPUT_TERMINAL)
        bTerminalID 2
        wTerminalType 0x0301 Speaker
        bAssocTerminal 0
        bSourceID 1
        iTerminal 3 Lexicon Lambda In/Out
      AudioControl Interface Descriptor:
        bLength 12
        bDescriptorType 36
        bDescriptorSubtype 2 (INPUT_TERMINAL)
        bTerminalID 3
        wTerminalType 0x0603 Line Connector
        bAssocTerminal 0
        bNrChannels 2
        wChannelConfig 0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames 0
        iTerminal 3 Lexicon Lambda In/Out
      AudioControl Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 3 (OUTPUT_TERMINAL)
        bTerminalID 4
        wTerminalType 0x0101 USB Streaming
        bAssocTerminal 0
        bSourceID 3
        iTerminal 3 Lexicon Lambda In/Out
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 1
      bNumEndpoints 1
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
      AudioStreaming Interface Descriptor:
        bLength 7
        bDescriptorType 36
        bDescriptorSubtype 1 (AS_GENERAL)
        bTerminalLink 1
        bDelay 1 frames
        wFormatTag 1 PCM
      AudioStreaming Interface Descriptor:
        bLength 14
        bDescriptorType 36
        bDescriptorSubtype 2 (FORMAT_TYPE)
        bFormatType 1 (FORMAT_TYPE_I)
        bNrChannels 2
        bSubframeSize 2
        bBitResolution 16
        bSamFreqType 2 Discrete
        tSamFreq[ 0] 44100
        tSamFreq[ 1] 48000
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 13
          Transfer Type Isochronous
          Synch Type Synchronous
          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 0x01
            Sampling Frequency
          bLockDelayUnits 1 Milliseconds
          wLockDelay 0 Milliseconds
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 2
      bNumEndpoints 1
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
      AudioStreaming Interface Descriptor:
        bLength 7
        bDescriptorType 36
        bDescriptorSubtype 1 (AS_GENERAL)
        bTerminalLink 1
        bDelay 1 frames
        wFormatTag 1 PCM
      AudioStreaming Interface Descriptor:
        bLength 14
        bDescriptorType 36
        bDescriptorSubtype 2 (FORMAT_TYPE)
        bFormatType 1 (FORMAT_TYPE_I)
        bNrChannels 2
        bSubframeSize 3
        bBitResolution 24
        bSamFreqType 2 Discrete
        tSamFreq[ 0] 44100
        tSamFreq[ 1] 48000
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 13
          Transfer Type Isochronous
          Synch Type Synchronous
          Usage Type Data
        wMaxPacketSize 0x0120 1x 288 bytes
        bInterval 1
        bRefresh 0
        bSynchAddress 0
        AudioControl Endpoint Descriptor:
          bLength 7
          bDescriptorType 37
          bDescriptorSubtype 1 (EP_GENERAL)
          bmAttributes 0x01
            Sampling Frequency
          bLockDelayUnits 1 Milliseconds
          wLockDelay 0 Milliseconds
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 1
      bNumEndpoints 1
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
      AudioStreaming Interface Descriptor:
        bLength 7
        bDescriptorType 36
        bDescriptorSubtype 1 (AS_GENERAL)
        bTerminalLink 4
        bDelay 1 frames
        wFormatTag 1 PCM
      AudioStreaming Interface Descriptor:
        bLength 14
        bDescriptorType 36
        bDescriptorSubtype 2 (FORMAT_TYPE)
        bFormatType 1 (FORMAT_TYPE_I)
        bNrChannels 2
        bSubframeSize 2
        bBitResolution 16
        bSamFreqType 2 Discrete
        tSamFreq[ 0] 44100
        tSamFreq[ 1] 48000
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 13
          Transfer Type Isochronous
          Synch Type Synchronous
          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 0x01
            Sampling Frequency
          bLockDelayUnits 1 Milliseconds
          wLockDelay 0 Milliseconds
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 2
      bNumEndpoints 1
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 3 Lexicon Lambda In/Out
      AudioStreaming Interface Descriptor:
        bLength 7
        bDescriptorType 36
        bDescriptorSubtype 1 (AS_GENERAL)
        bTerminalLink 4
        bDelay 1 frames
        wFormatTag 1 PCM
      AudioStreaming Interface Descriptor:
        bLength 14
        bDescriptorType 36
        bDescriptorSubtype 2 (FORMAT_TYPE)
        bFormatType 1 (FORMAT_TYPE_I)
        bNrChannels 2
        bSubframeSize 3
        bBitResolution 24
        bSamFreqType 2 Discrete
        tSamFreq[ 0] 44100
        tSamFreq[ 1] 48000
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 13
          Transfer Type Isochronous
          Synch Type Synchronous
          Usage Type Data
        wMaxPacketSize 0x0120 1x 288 bytes
        bInterval 1
        bRefresh 0
        bSynchAddress 0
        AudioControl Endpoint Descriptor:
          bLength 7
          bDescriptorType 37
          bDescriptorSubtype 1 (EP_GENERAL)
          bmAttributes 0x01
            Sampling Frequency
          bLockDelayUnits 1 Milliseconds
          wLockDelay 0 Milliseconds
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 6
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 1 Audio
      bInterfaceSubClass 1 Control Device
      bInterfaceProtocol 0
      iInterface 4 Lexicon Lambda Midi
      AudioControl Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 1 (HEADER)
        bcdADC 1.00
        wTotalLength 9
        bInCollection 1
        baInterfaceNr( 0) 7
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 7
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 1 Audio
      bInterfaceSubClass 3 MIDI Streaming
      bInterfaceProtocol 0
      iInterface 4 Lexicon Lambda Midi
      MIDIStreaming Interface Descriptor:
        bLength 7
        bDescriptorType 36
        bDescriptorSubtype 1 (HEADER)
        bcdADC 1.00
        wTotalLength 65
      MIDIStreaming Interface Descriptor:
        bLength 6
        bDescriptorType 36
        bDescriptorSubtype 2 (MIDI_IN_JACK)
        bJackType 1 Embedded
        bJackID 1
        iJack 0
      MIDIStreaming Interface Descriptor:
        bLength 6
        bDescriptorType 36
        bDescriptorSubtype 2 (MIDI_IN_JACK)
        bJackType 2 External
        bJackID 2
        iJack 0
      MIDIStreaming Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 3 (MIDI_OUT_JACK)
        bJackType 1 Embedded
        bJackID 3
        bNrInputPins 1
        baSourceID( 0) 2
        BaSourcePin( 0) 1
        iJack 0
      MIDIStreaming Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 3 (MIDI_OUT_JACK)
        bJackType 2 External
        bJackID 4
        bNrInputPins 1
        baSourceID( 0) 1
        BaSourcePin( 0) 1
        iJack 0
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x04 EP 4 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0010 1x 16 bytes
        bInterval 0
        bRefresh 0
        bSynchAddress 0
        MIDIStreaming Endpoint Descriptor:
          bLength 5
          bDescriptorType 37
          bDescriptorSubtype 1 (GENERAL)
          bNumEmbMIDIJack 1
          baAssocJackID( 0) 1
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x84 EP 4 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0010 1x 16 bytes
        bInterval 0
        bRefresh 0
        bSynchAddress 0
        MIDIStreaming Endpoint Descriptor:
          bLength 5
          bDescriptorType 37
          bDescriptorSubtype 1 (GENERAL)
          bNumEmbMIDIJack 1
          baAssocJackID( 0) 3
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 4
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 254 Application Specific Interface
      bInterfaceSubClass 1 Device Firmware Update
      bInterfaceProtocol 0
      iInterface 0
      Device Firmware Upgrade Interface Descriptor:
        bLength 7
        bDescriptorType 33
        bmAttributes 7
          Will Not Detach
          Manifestation Tolerant
          Upload Supported
          Download Supported
        wDetachTimeout 256 milliseconds
        wTransferSize 64 bytes
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
  (Bus Powered)

-- 
Chris Caudle
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Tue Dec 5 00:15:02 2017

This archive was generated by hypermail 2.1.8 : Tue Dec 05 2017 - 00:15:02 EET