* Apogee ONEv2 keeps resetting
@ 2022-03-20 1:15 Petr Janecek
2022-03-22 18:03 ` Alan Stern
0 siblings, 1 reply; 6+ messages in thread
From: Petr Janecek @ 2022-03-20 1:15 UTC (permalink / raw)
To: alsa-devel, linux-usb
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.
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.10
[ 253.980238] usb 3-8: 10:0: cannot get min/max values for control 2
(id 10)
[ 253.980445] usb 3-8: 12:0: cannot get min/max values for control 2
(id 12)
[ 253.980648] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 253.981927] usbcore: registered new interface driver snd-usb-audio
[ 254.048280] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 254.050512] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 254.052961] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 254.063566] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 254.654578] usb 3-8: USB disconnect, device number 6
[ 255.018600] usb 3-8: new high-speed USB device number 7 using xhci_hcd
[ 255.199489] usb 3-8: New USB device found, idVendor=0c60,
idProduct=0017, bcdDevice= 1.05
[ 255.199503] usb 3-8: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 255.199509] usb 3-8: Product: ONEv2
[ 255.199514] usb 3-8: Manufacturer: Apogee
[ 255.199518] usb 3-8: SerialNumber: 0C12FF2020204652334D513A7A2A9B
[ 255.213096] usb 3-8: 10:0: cannot get min/max values for control 2
(id 10)
[ 255.213338] usb 3-8: 12:0: cannot get min/max values for control 2
(id 12)
[ 255.213573] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 255.311363] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 255.313151] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 255.315387] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 255.326899] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 255.862049] usb 3-8: USB disconnect, device number 7
[ 256.308529] usb 3-8: new high-speed USB device number 8 using xhci_hcd
[ 256.499431] usb 3-8: New USB device found, idVendor=0c60,
idProduct=0017, bcdDevice= 1.05
[ 256.499444] usb 3-8: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 256.499450] usb 3-8: Product: ONEv2
[ 256.499454] usb 3-8: Manufacturer: Apogee
[ 256.499458] usb 3-8: SerialNumber: 0C12FF2020204652334D513A7A2A9B
[ 256.506875] usb 3-8: 10:0: cannot get min/max values for control 2
(id 10)
[ 256.507118] usb 3-8: 12:0: cannot get min/max values for control 2
(id 12)
[ 256.507353] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 256.610890] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 256.612738] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 256.614986] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 256.627625] usb 3-8: 14:0: cannot get min/max values for control 2
(id 14)
[ 257.067595] usb 3-8: USB disconnect, device number 8
...
Any ideas?
Thanks,
Petr
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Apogee ONEv2 keeps resetting 2022-03-20 1:15 Apogee ONEv2 keeps resetting Petr Janecek @ 2022-03-22 18:03 ` Alan Stern 2022-03-24 2:44 ` Petr Janecek 0 siblings, 1 reply; 6+ messages in thread From: Alan Stern @ 2022-03-22 18:03 UTC (permalink / raw) To: Petr Janecek; +Cc: alsa-devel, linux-usb 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? > 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.10 Any idea where that line came from? 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. One other thing you might try: Disable runtime PM for USB ("echo -1 >/sys/module/usbcore/parameters/autosuspend" before plugging in the device). Alan Stern ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apogee ONEv2 keeps resetting 2022-03-22 18:03 ` Alan Stern @ 2022-03-24 2:44 ` Petr Janecek 2022-03-24 15:21 ` Alan Stern 0 siblings, 1 reply; 6+ messages in thread From: Petr Janecek @ 2022-03-24 2:44 UTC (permalink / raw) To: Alan Stern; +Cc: alsa-devel, linux-usb [-- Attachment #1: Type: text/plain, Size: 3187 bytes --] 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.10 > > Any 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 the > device). Makes no difference -- almost: after few resets it once took much longer (>10x) to reconnect. Petr Janecek [-- Attachment #2: onev2_no_usb_audio.pcapng.xz --] [-- Type: application/x-xz, Size: 3036 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apogee ONEv2 keeps resetting 2022-03-24 2:44 ` Petr Janecek @ 2022-03-24 15:21 ` Alan Stern 2022-04-02 4:18 ` Petr Janecek 0 siblings, 1 reply; 6+ messages in thread From: Alan Stern @ 2022-03-24 15:21 UTC (permalink / raw) To: Petr Janecek; +Cc: alsa-devel, linux-usb On Thu, Mar 24, 2022 at 03:44:41AM +0100, Petr Janecek wrote: > 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 Nothing particularly suspicious there. > > > > 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.10 > > > > Any 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. The trace doesn't help much, unfortunately. It shows normal device initialization, plus a couple of extra string descriptor reads. About 1/2 second afterward, the device disconnects itself electronically from the USB bus and reconnects 20 ms later. I get the feeling that the device expects to receive some specific messages from the host within that one-half second, and disconnects if it doesn't see them. And presumably it doesn't get what it's looking for even when the USB sound drivers are enabled. Although I doubt it will show anything helpful, you might try collecting a usbmon trace with the sound drivers enabled. Perhaps it will suggest something to the USB audio developers. > > One other thing you might try: Disable runtime PM for USB ("echo -1 > > > /sys/module/usbcore/parameters/autosuspend" before plugging in the > > device). > > Makes no difference -- almost: after few resets it once took much > longer (>10x) to reconnect. Oh well, it was worth a try. Some devices don't like runtime suspend. But obviously that isn't the problem here. Alan Stern ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apogee ONEv2 keeps resetting 2022-03-24 15:21 ` Alan Stern @ 2022-04-02 4:18 ` Petr Janecek 2022-04-02 13:50 ` Alan Stern 0 siblings, 1 reply; 6+ messages in thread From: Petr Janecek @ 2022-04-02 4:18 UTC (permalink / raw) To: Alan Stern; +Cc: alsa-devel, linux-usb On Thu, Mar 24, 2022 at 11:21:54AM -0400, Alan Stern wrote: > On Thu, Mar 24, 2022 at 03:44:41AM +0100, Petr Janecek wrote: > > 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 > > Nothing particularly suspicious there. > > > > > > > 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.10 > > > > > > Any 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. > > The trace doesn't help much, unfortunately. It shows normal device > initialization, plus a couple of extra string descriptor reads. About > 1/2 second afterward, the device disconnects itself electronically from > the USB bus and reconnects 20 ms later. > > I get the feeling that the device expects to receive some specific > messages from the host within that one-half second, and disconnects if > it doesn't see them. And presumably it doesn't get what it's looking > for even when the USB sound drivers are enabled. I've compared traces in linux to macos and windows, and the only thing linux does that the others don't is something like usb_get_string(dev, 0, 0xee, &buf, 1024) like it's getting the microsoft os descriptor. And the apogee does not like it: it's the only get descriptor string request with empty string response. When the request is made the second time, it's the last request before reset. This oddball request happens even with snd-usb-audio disabled. And I'm totally unable to find where it comes from, I have not enabled anything like USB_GADGET. How to get rid of it? Petr Janecek ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apogee ONEv2 keeps resetting 2022-04-02 4:18 ` Petr Janecek @ 2022-04-02 13:50 ` Alan Stern 0 siblings, 0 replies; 6+ messages in thread From: Alan Stern @ 2022-04-02 13:50 UTC (permalink / raw) To: Petr Janecek; +Cc: alsa-devel, linux-usb On Sat, Apr 02, 2022 at 06:18:26AM +0200, Petr Janecek wrote: > I've compared traces in linux to macos and windows, and > the only thing linux does that the others don't is something > like > > usb_get_string(dev, 0, 0xee, &buf, 1024) > > like it's getting the microsoft os descriptor. Exactly so. > And the apogee does not like it: it's the only get > descriptor string request with empty string response. When > the request is made the second time, it's the last request > before reset. That doesn't necessarily mean anything, of course. > This oddball request happens even with snd-usb-audio > disabled. And I'm totally unable to find where it comes > from, I have not enabled anything like USB_GADGET. > How to get rid of it? It might not come from a kernel driver at all; it might come from a user program via usbfs. Try turning on usbfs snooping before you plug in the device: echo 1 >/sys/module/usbcore/parameters/usbfs_snoop and see what shows up in the kernel log. Alan Stern ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-04-02 13:50 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-03-20 1:15 Apogee ONEv2 keeps resetting Petr Janecek 2022-03-22 18:03 ` Alan Stern 2022-03-24 2:44 ` Petr Janecek 2022-03-24 15:21 ` Alan Stern 2022-04-02 4:18 ` Petr Janecek 2022-04-02 13:50 ` Alan Stern
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).