Created attachment 282521 [details]
Output from alsa-info.sh kernel 5.1-rc6 (USB audio not working)
This is a video conferencing system with a webcam, audio and microphone - all connected with a single USB wire. The buildt in USB audio does not work in kernel 5.1-rc6. Tested with mainline 5.1-rc6 on a gentoo system. Also tested in Fedora kernel 5.0.8-200.fc29.x86_64 with the same result (i.e. no audio). However, in kernel 4.19.36 (and also Fedora 4.13.0-0.rc0.git3.1.fc27.x86_64) audio is working fine.
aplay -v -D "default:CARD=1" /usr/share/sounds/alsa/Noise.wav
In 4.19.36 I hear a noise (as expected), but not in kernel 5.1-rc6 where it outputs:
ALSA lib /tmp/portage/media-libs/alsa-lib-1.1.8/work/alsa-lib-1.1.8/src/pcm/pcm_direct.c:1271:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib /tmp/portage/media-libs/alsa-lib-1.1.8/work/alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1120:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:828: audio open error: Input/output error
and dmesg outputs:
usb 1-14.2: 2:1: usb_set_interface failed (-110)
Created attachment 282523 [details]
alsa-info from 4.19.36 which works
Created attachment 282525 [details]
"lsusb -v" from 5.1-rc6
Created attachment 282527 [details]
dmesg from 5.1-rc6
The same happens to Logitech ConferenceCam Connect (usb id 046d:084e). It started failing on kernel 5.0.0, and the last working kernel versions are in 4.20 branch.
I can also confirm it persists on 5.1, 5.2 and 5.3 kernels.
Same for me, works on version 4.20.3 and started failing with 5.0 . Still broken with current my current version 5.2.16 . no developer can use conference microphones currently.
+1. Also impacted running Arch Linux with latest kernel.
Installation of 4.19.80-2-lts (pacman -S linux-lts) fixed the problem.
Can confirm this problem. Still present on 5.3.7.
We have the same issue with the 5.4.2 kernel. When testing the whole system starts locking up even, this is on Ubuntu 18.04 with a Logitech Group system.
Works on the 4.4 kernel in Ubuntu 16.04.
Created attachment 286379 [details]
dmesg from 5.4
Attached the dmesg with the 5.4 kernel in Ubuntu 18.04 on a Intel NUC 7i5BNK.
For users who stumble upon this bug report:
A work-around is to:
echo blacklist snd_usb_audio >> /etc/modprobe.d/logitech-speakerphone.conf
then at least the video features of the conferencing system are available (and some other microphone can be used).
Well, someone needs to run git bisect for spotting out what broke.
-110 = -ETIMEDOUT, which indicates something to do with the firmware in most cases. From that error code, I'd rather suspect some changes in USB core side.
(In reply to Glen Ogilvie from comment #7)
> +1. Also impacted running Arch Linux with latest kernel.
> Installation of 4.19.80-2-lts (pacman -S linux-lts) fixed the problem.
I was impacted by this in my workplace with Arch Linux and a Logitech ConferenceCam Connect. The workaround of switching to the LTS kernel worked ... except in the last two weeks or so. Now neither the LTS nor the latest kernels on Arch Linux work with my workplace conferencing equipment.
I'm fairly certain that I encountered the same bug, albeit with different hardware.
Bus 003 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
The error messages are the same though.
I bisected it and got to the following commit:
# first bad commit: [ef513be0a9057cc6baf5d29566aaaefa214ba344] usb: xhci: Add Clear_TT_Buffer
From the description it has something to do with usb audio conference systems which would fit pretty well.
Last good one was:
good: [4998f1efd1904dd21697aeeead270e3eb97691dd] usb: Add devaddr in struct usb_device
Kernel 5.5.10: my Logitech C920 microphone has now stayed silent for a noticeable period of time. Input profiles are nicely listed in PulseAudio, obviously snd-usb-audio is loaded, etc, but noise level meters stay flatlined.
I'm not sure when this regressed.. maybe within the last year somewhere? It definitely has worked on older kernels, but went silent somewhere in 5.x.
Could someone else maybe confirm if they get a working kernel when using commit [4998f1efd1904dd21697aeeead270e3eb97691dd] usb: Add devaddr in struct usb_device
and that it fails at/after commit
[ef513be0a9057cc6baf5d29566aaaefa214ba344] usb: xhci: Add Clear_TT_Buffer
Because even though I get the same error message and problem and bisected it to the latter commit, that one was applied somewhere around kernel 5.2 as far as I can see, which doesn't fit the initial bug report version wise.
I have been using the Logtch ConferenceCam Connect for months before a update last autumn. Since then I can't anymore.
now with kernel 5.4 sill not working
[145512.291106] usb 1-2: new high-speed USB device number 9 using xhci_hcd
[145512.339897] usb 1-2: New USB device found, idVendor=046d, idProduct=084e, bcdDevice=32.98
[145512.339898] usb 1-2: New USB device strings: Mfr=10, Product=11, SerialNumber=0
[145512.339899] usb 1-2: Product: ConferenceCam Connect
[145512.339900] usb 1-2: Manufacturer: Logitech
[145512.341246] hub 1-2:1.0: USB hub found
[145512.342825] hub 1-2:1.0: 4 ports detected
[145512.635124] usb 1-2.1: new full-speed USB device number 10 using xhci_hcd
[145512.743047] usb 1-2.1: New USB device found, idVendor=046d, idProduct=084c, bcdDevice= 2.00
[145512.743048] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[145512.743049] usb 1-2.1: Product: ConferenceCam Connect
[145512.743050] usb 1-2.1: Manufacturer: Logitech
[145512.743050] usb 1-2.1: SerialNumber: 0X090X6E0X440X18
[145517.865085] usb 1-2.1: 1:1: cannot get freq at ep 0x82
[145528.103147] input: Logitech ConferenceCam Connect Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3/0003:046D:084C.001D/input/input54
[145528.163234] input: Logitech ConferenceCam Connect as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3/0003:046D:084C.001D/input/input55
[145528.163377] input: Logitech ConferenceCam Connect as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3/0003:046D:084C.001D/input/input56
[145528.163710] hid-generic 0003:046D:084C.001D: input,hiddev3,hidraw4: USB HID v1.11 Device [Logitech ConferenceCam Connect] on usb-0000:00:14.0-2.1/input3
[145528.243041] usb 1-2.2: new high-speed USB device number 11 using xhci_hcd
[145528.265137] usb 1-2.2: New USB device found, idVendor=046d, idProduct=084b, bcdDevice= 0.13
[145528.265138] usb 1-2.2: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[145528.265139] usb 1-2.2: Product: ConferenceCam Connect
[145528.265140] usb 1-2.2: SerialNumber: 90E64481
[145528.266908] uvcvideo: Found UVC 1.00 device ConferenceCam Connect (046d:084b)
[145528.267991] uvcvideo 1-2.2:1.0: Entity type for entity Processing 3 was not initialized!
[145528.267993] uvcvideo 1-2.2:1.0: Entity type for entity Extension 6 was not initialized!
[145528.267993] uvcvideo 1-2.2:1.0: Entity type for entity Extension 8 was not initialized!
[145528.267994] uvcvideo 1-2.2:1.0: Entity type for entity Extension 9 was not initialized!
[145528.267995] uvcvideo 1-2.2:1.0: Entity type for entity Extension 10 was not initialized!
[145528.267995] uvcvideo 1-2.2:1.0: Entity type for entity Extension 11 was not initialized!
[145528.267996] uvcvideo 1-2.2:1.0: Entity type for entity Extension 12 was not initialized!
[145528.267997] uvcvideo 1-2.2:1.0: Entity type for entity Extension 13 was not initialized!
[145528.267998] uvcvideo 1-2.2:1.0: Entity type for entity Camera 1 was not initialized!
[145528.268086] input: ConferenceCam Connect as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2/1-2.2:1.0/input/input58
[145528.268518] input: ConferenceCam Connect Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2/1-2.2:1.2/0003:046D:084B.001E/input/input59
[145528.327325] hid-generic 0003:046D:084B.001E: input,hidraw5: USB HID v1.11 Device [ConferenceCam Connect] on usb-0000:00:14.0-2.2/input2
[145559.081624] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145564.205564] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145569.321577] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145574.441624] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145579.561474] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145584.681577] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145589.801511] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145594.921441] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145600.041511] usb 1-2.1: 1:1: usb_set_interface failed (-110)
[145605.161510] usb 1-2.1: 1:1: usb_set_interface failed (-110)
Sounds more like a USB issue. Reassigned.
Mathias, maybe you should look at this.
On Wed, 1 Apr 2020 firstname.lastname@example.org wrote:
> Takashi Iwai (email@example.com) changed:
> What |Removed |Added
> Component|Sound(ALSA) |USB
> Assigneefirstname.lastname@example.org |email@example.com
> | |nel.org
> --- Comment #18 from Takashi Iwai (firstname.lastname@example.org) ---
> Sounds more like a USB issue. Reassigned.
In the bug report, Florian Meyer tentatively identified commit
ef513be0a905 ("usb: xhci: Add Clear_TT_Buffer") as the one causing the
problem. No one else has verified this, however -- and as far as I can
see, even Florian hasn't tried starting from that commit and reverting
I get my sound system working if I use the version at the commit directly before ef513be0a905.
I just don't know if my bug is the same as the one originally reported here. The error messages are the same and the problem is the same, but the commit was applied during the 5.2 developement I think? Which would not fit the versions given in the first messages here.
Any chance someone who could reproduce this on 5.1-rc6, 5.1 or 5.0 could bisect the kernel and find the problematic commit.
Also traces and logs with more usb details enabled could be useful.
These can be taken with any recent kernel.
mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control
echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable
< connect the logitec device >
Send output of dmesg
Send content of /sys/kernel/debug/tracing/trace
I don't have the HW to test, but I noticed that probably this bug is similar to bug 206897, which has been bisected to the same commit.
I have the HUION device and I could help until the end of the week (pandemic == no job for me :-( )
I can build, install and develop kernel code, but i don't know about USB internals.
(In reply to Mathias Nyman from comment #21)
> Any chance someone who could reproduce this on 5.1-rc6, 5.1 or 5.0 could
> bisect the kernel and find the problematic commit.
I am happy to do this when back at work where the device is, but currently we are in lockdown in New Zealand.. so may not be for a month or more.
I've also opened a new issue for the "same" problem that started appearing from 5.2 onwards for me.
I've posted the logs Mathias requested there.
Florian, ef513be0a9057cc6baf5d29566aaaefa214ba344 is not contained in the v5.2 kernel tag...
$ git tag --contains ef513be0a9057cc6baf5d29566aaaefa214ba344 | grep '^v5.[0-9]\+$'
do you mean that you were impacted by bug 207065 with kernels **after** v5.2 (i.e. v5.2 was the last good one)? For me 5.2.21 is unaffected.
When building it, make menuconfig identified it as 5.2-rc3 which is why I thought it was part of 5.2. But yeah I think 5.3 was the first released version failing for me. Anyway, its definitely not part of 5.0 or 5.1, so the problem is different from the one discussed here.
Created attachment 288295 [details]
testpatch that doesn't clear TT buffer after protocol STALL
Adding same patch and comment here as in bug #207065, it might
help in this case as well.
"Traces show its related to Clearing TT buffer after a STALL on
The first stall looks like a protocol stall, not a function stall, meaning that
endpoint isn't really halted, just that the device does not support the
request in the control transfer.
Anyway, xhci starts clearing what it assumes is a halted endpoint,
including clearing the hub TT buffer.
Specs are a bit unclear if TT should be cleared in this case,
or at least I couldn't find it."
Attached is a tespatch that doesn't clear TT buffer on protocol stalls,
withexcessive tracing and debugging.
Applying the patches in bug 207065, comment 7 the problem reported in bug 206897 for HUION tablet is fixed. Looks promising :-)
Hi, any news about it? when it's going to be implemented in stable kernel? Thanks
(In reply to Marco S. from comment #29)
> Hi, any news about it? when it's going to be implemented in stable kernel?
it's in 5.4.36 stable kernel:
fceab238c534 xhci: Don't clear hub TT buffer on ep0 protocol stall
(In reply to Mathias Nyman from comment #30)
> (In reply to Marco S. from comment #29)
> > Hi, any news about it? when it's going to be implemented in stable kernel?
> > Thanks
> it's in 5.4.36 stable kernel:
> fceab238c534 xhci: Don't clear hub TT buffer on ep0 protocol stall
I'm running 5.7.6 and still have the issue with Logic Group USB
Created attachment 290071 [details]
$ uname -a
Linux astrolabe11 5.7.0-1-amd64 #1 SMP Debian 5.7.6-1 (2020-06-24) x86_64
connecting the ConfCam connect ruins all audio (even other cards become
On Thu, 2 Jul 2020 at 16:15, <email@example.com> wrote:
> --- Comment #31 from Marco S. (firstname.lastname@example.org) ---
> (In reply to Mathias Nyman from comment #30)
> > (In reply to Marco S. from comment #29)
> > > Hi, any news about it? when it's going to be implemented in stable
> > > Thanks
> > it's in 5.4.36 stable kernel:
> > fceab238c534 xhci: Don't clear hub TT buffer on ep0 protocol stall
> I'm running 5.7.6 and still have the issue with Logic Group USB
> You are receiving this mail because:
> You are on the CC list for the bug.
So looks like patch:
8f97250c21f0 xhci: Don't clear hub TT buffer on ep0 protocol stall
HUION tablet - Vincenzo Di Massa
C-Media Electronics, Inc. Audio Adapter - Florian Meyer
Doesn't work for:
Logitech ConfCam Connect - Dominique Archambault
Logic Group USB - Marco S
For those that the patch doesn't work, could you take new
traces and logs. See comment #21 for details
Created attachment 290085 [details]
dmesg fedora32 kernel 5.7.6 logic group usb
Created attachment 290087 [details]
trace fedora32 kernel 5.7.6 logic group usb
Hi there, any news?
like mentioned in #33, "8f97250c21f0 xhci: Don't clear hub TT buffer..." should be applied first. Moreover, it seems this device needs extra workaround in HID (This device is HUB + UVC + UAC + HID).
Adding "usbhid.quirks=0x046d:0x0882:0x4" to command line will block HID device initialized, and audio will be okay. but after this, pressing any key on a keypad will trigger disconnect.
FYI, the same bug is tracked on here: http://crbug.com/983482