Hi Alan, On 3/22/22 19:03, Alan Stern wrote:
On Sun, Mar 20, 2022 at 02:15:40AM +0100, Petr Janecek wrote:Hi, I'm trying to use Apogee ONEv2. From usb dumps under macos or windows it seems like a usb Class Audio 2.0 device, but in linux, it keeps resetting every two seconds or so. It keeps resetting even when the snd-usb-audio driver is disabled, so the problem is probably at a lower level.Can you post the log output on a system where snd-usb-audio is disabled?
[ 3412.279063] usb 3-8: new high-speed USB device number 6 using xhci_hcd[ 3412.470003] usb 3-8: New USB device found, idVendor=0c60, idProduct=0017, bcdDevice= 1.05 [ 3412.470017] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3412.470023] usb 3-8: Product: ONEv2 [ 3412.470028] usb 3-8: Manufacturer: Apogee [ 3412.470033] usb 3-8: SerialNumber: 0C12FF2020204652334D513A7A2A9B [ 3413.217053] usb 3-8: USB disconnect, device number 6 [ 3413.629046] usb 3-8: new high-speed USB device number 7 using xhci_hcd[ 3413.829760] usb 3-8: New USB device found, idVendor=0c60, idProduct=0017, bcdDevice= 1.05 [ 3413.829766] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3413.829768] usb 3-8: Product: ONEv2 [ 3413.829770] usb 3-8: Manufacturer: Apogee [ 3413.829772] usb 3-8: SerialNumber: 0C12FF2020204652334D513A7A2A9B [ 3414.421964] usb 3-8: USB disconnect, device number 7 [ 3414.838981] usb 3-8: new high-speed USB device number 8 using xhci_hcd[ 3415.029947] usb 3-8: New USB device found, idVendor=0c60, idProduct=0017, bcdDevice= 1.05 [ 3415.029961] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3415.029968] usb 3-8: Product: ONEv2 [ 3415.029973] usb 3-8: Manufacturer: Apogee [ 3415.029978] usb 3-8: SerialNumber: 0C12FF2020204652334D513A7A2A9B [ 3415.627052] usb 3-8: USB disconnect, device number 8
The messages below are from v5.16.16, but it behaves the same no matter what I plug it into. [ 253.708616] usb 3-8: new high-speed USB device number 6 using xhci_hcd [ 253.899363] usb 3-8: New USB device found, idVendor=0c60, idProduct=0017, bcdDevice= 1.05 [ 253.899370] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 253.899373] usb 3-8: Product: ONEv2 [ 253.899375] usb 3-8: Manufacturer: Apogee [ 253.899377] usb 3-8: SerialNumber: 0C12FF2020204652334D513A7A2A9B [ 253.960901] mc: Linux media interface: v0.10Any idea where that line came from?
That's from CONFIG_MEDIA_CONTROLLER, which is selected for usb webcam. It also selects CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER. Compiled it out, rebooted. Now the line is missing, but no other change.
You should try capturing a usbmon trace showing what happens when the device is plugged in and then resets. Preferably on a system where snd-usb-audio is disabled.
Trace from wireshark is attached.
One other thing you might try: Disable runtime PM for USB ("echo -1/sys/module/usbcore/parameters/autosuspend" before plugging in thedevice).
Makes no difference -- almost: after few resets it once took much longer (>10x) to reconnect. Petr Janecek
Attachment:
onev2_no_usb_audio.pcapng.xz
Description: application/xz