You are not logged in.

#1 2018-04-18 17:25:58

f3flight
Member
Registered: 2015-03-04
Posts: 27

E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

Hi dear Linux lovers,

I've ran into an issue with an external USB audio interface. IT works fine on Ubuntu 4.4 and 4.13 kernels, but when I try to plug it into my Arch Linux installation (with latest kernel) - I get this in dmesg:

[74327.457764] usb 3-2: new high-speed USB device number 15 using xhci_hcd
[74327.586191] usb 3-2: New USB device found, idVendor=041e, idProduct=3f02
[74327.586193] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[74327.586195] usb 3-2: Product: E-MU 0202 | USB
[74327.586196] usb 3-2: Manufacturer: E-MU Systems, Inc.
[74327.586197] usb 3-2: SerialNumber: E-MU-46-3F02-07D60B04-06F81-STATION 1
[74337.757125] usb 3-2: 2:1: usb_set_interface failed (-110)
[74342.877073] usb 3-2: 2:1: usb_set_interface failed (-110)
[74347.997087] usb 3-2: 2:1: usb_set_interface failed (-110)
[74353.117131] usb 3-2: 2:1: usb_set_interface failed (-110)
[74358.237130] usb 3-2: 2:1: usb_set_interface failed (-110)

Googling showed only very old posts back from 2011 with mostly different exit codes of usb_set_interface, for ex. -71, and fixed by kernel update...

Additionally when I plug the device in and wait a bit I can get all sorts of issues like hung windows (Gnome desktop), non-working mouse and keyboard, etc - and as soon as I unplug - everything shoots back to normal.
If I keep it plugged in and reboot, I get non-working mouse and kb (external USB), until I unplug the device.

Any chance I can debug this further?

P.S. tried linux-lts (4.14), looks identical:

[Wed Apr 18 13:33:39 2018] usb 3-2: new high-speed USB device number 6 using xhci_hcd
[Wed Apr 18 13:33:49 2018] usb 3-2: 2:1: usb_set_interface failed (-110)
[Wed Apr 18 13:33:54 2018] usb 3-2: 2:1: usb_set_interface failed (-110)
[Wed Apr 18 13:33:59 2018] usb 3-2: 2:1: usb_set_interface failed (-110)
[Wed Apr 18 13:34:04 2018] usb 3-2: 2:1: usb_set_interface failed (-110)
[Wed Apr 18 13:34:09 2018] usb 3-2: 2:1: usb_set_interface failed (-110)
[Wed Apr 18 13:34:14 2018] usb 3-2: 2:1: usb_set_interface failed (-110)
[Wed Apr 18 13:34:19 2018] usb 3-2: 2:1: usb_set_interface failed (-110)        

P.P.S. tried installing older linux 4.10 package - same result. Then used "downgrade" from AUR to install an even older 4.4.5 kernel - issue persisted. So it seems the problem is not with the kernel but rather (maybe) alsa or with kernel config parameters which did not change since 4.4... Again, on Ubuntu it works on all kernels out of the box.
I also tried to use alsa-info.sh to collect diagnostics data - it works when card is off, but freezes when I enable it. Basically "amixer" command freezes. I do however see that in "aplay -l" there's a new item when I enable the device:

...
card 3: USB [E-MU 0202 | USB], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

This "Subdevices: 0/1" looks bad, the rest of audio devices in the list have "Subdevices: 1/1".

P.P.P.S. I found in Linux sources that -110 may be ETIMEOUT or ESHUTDOWN, ro something else still...

P.P.P.P.S. I've Identified that without running PulseAudio the device is visible to alsa and amixer does not freeze, and "aplay -l" shows the device with "Subdevices: 1/1". Didn't test if it works, but definitely PulseAudio is doing something which gets the device stuck, as well as the whole USB bus. I found something similar here...

P.P.P.P.P.S. I've found that if I get rid of pulseaudio processses and then plug in the device, and only then start pulseaudio via "pulseaudio -D" - everything is ok. However if pulseaudio is already running when I plug in the card - the issue appears.

Last edited by f3flight (2018-04-23 23:49:45)

Offline

#2 2018-04-25 20:31:17

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

I've found a workaround - "sudo killall pulseaudio" as soon as I plug in the interface. Pulseaudio gets restarted automatically, and nothing hangs.
I've filed a bug in Arch Linux bugtracker - https://bugs.archlinux.org/task/58327. I'll post further updates there.

Offline

#3 2018-05-02 17:58:43

loqs
Member
Registered: 2014-03-06
Posts: 17,322

Re: E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

If you build linux 4.13 with ubuntu's kernel .config does that kernel have the issue running with arch's userspace?
https://www.freedesktop.org/wiki/Softwa … Community/ for steps to take before reporting the issue upstream to pulse.

Offline

#4 2018-05-02 18:37:50

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

loqs wrote:

If you build linux 4.13 with ubuntu's kernel .config does that kernel have the issue running with arch's userspace?
https://www.freedesktop.org/wiki/Softwa … Community/ for steps to take before reporting the issue upstream to pulse.

I can try this, I've got the config from Ubuntu's latest 18.04 with kernel 4.15 (where the interface works as well).

Offline

#5 2018-05-03 20:18:55

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

Same behavior observed with Ubuntu's kernel config for kernel 4.15.18.
Therefore I'm mostly confident that the issue is with PulseAudio userspace binary or related libs.

Offline

#6 2018-05-17 21:00:59

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

Filed bug to Arch Linux tracker. https://bugs.archlinux.org/task/58327
Filed upstream bug to Pulseaudio - https://bugs.freedesktop.org/show_bug.cgi?id=106557
Filed bug against kernel driver (ALSA) - https://bugzilla.kernel.org/show_bug.cgi?id=200031

Last edited by f3flight (2018-06-11 21:42:51)

Offline

#7 2019-01-26 08:33:53

bonanza
Member
Registered: 2015-06-08
Posts: 23

Re: E-MU 0202 USB - freezes kernel / USB subsystem - kernel 4.15.15

f3flight wrote:

Filed bug to Arch Linux tracker. https://bugs.archlinux.org/task/58327
Filed upstream bug to Pulseaudio - https://bugs.freedesktop.org/show_bug.cgi?id=106557
Filed bug against kernel driver (ALSA) - https://bugzilla.kernel.org/show_bug.cgi?id=200031

I believe that I notice a very similar problem. Did you find a fix and/or workaround meanwhile?

Edit: Did you try this one for example?
https://bbs.archlinux.org/viewtopic.php … 2#p1428782

Last edited by bonanza (2019-01-26 10:48:54)

Offline

Board footer

Powered by FluxBB