[USB-Audio - PX USB, playback] snd-usb-audio: probe of 2-3:1.0 failed with error -22 after kernel upgrade

Bug #1773697 reported by DSHR
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Bug report has been generated on a partially working configuration. That allows ubuntu-bug to do more work.

USB-Audio Connection on Bowers & Wilkens PX Bluetooth Headphones started working when upgrading kernel from 4.13 to 4.15 series. Then it suddenly stopped working again on newer kernels. The bug report has been generated on the latest working mainline kernel 4.15.7. All newer kernels have some usb quirks in place, which should fix the playback sample rates to 48 kHz. The quirk seems not to be working correctly and hinder the audio system to recognize the USB-device as a sound device.

The Headphones work on kernels before 4,15.7 when manually configuring pulseaudio to a default samplerate of 48 kHz.

PX Headphones are on the newest firmware level.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: alsa-base 1.0.25+dfsg-0ubuntu5
Uname: Linux 4.15.7-041507-lowlatency x86_64
AlsaInfo: Error: command ['/usr/share/alsa-base/alsa-info.sh', '--stdout', '--no-upload'] failed with exit code 1: mktemp: failed to create directory via template '/tmp/zsh-1000/alsa-info.XXXXXXXXXX': No such file or directory
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: dshr 2729 F.... pulseaudio
 /dev/snd/controlC1: dshr 2729 F.... pulseaudio
 /dev/snd/controlC0: dshr 2729 F.... pulseaudio
CurrentDesktop: GNOME
Date: Sun May 27 22:21:53 2018
InstallationDate: Installed on 2016-02-05 (841 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/zsh
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:USB successful
Symptom_Card: PX USB - PX USB
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: dshr 2729 F.... pulseaudio
 /dev/snd/controlC1: dshr 2729 F.... pulseaudio
 /dev/snd/controlC0: dshr 2729 F.... pulseaudio
Symptom_PulsePlaybackTest: PulseAudio playback test successful
Symptom_Type: No sound at all
Title: [USB-Audio - PX USB, playback] No sound at all
UpgradeStatus: Upgraded to bionic on 2018-05-27 (0 days ago)
dmi.bios.date: 06/23/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: N11ET33W (1.09 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20CJS00Q00
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrN11ET33W(1.09):bd06/23/2015:svnLENOVO:pn20CJS00Q00:pvrThinkPadT550:rvnLENOVO:rn20CJS00Q00:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T550
dmi.product.name: 20CJS00Q00
dmi.product.version: ThinkPad T550
dmi.sys.vendor: LENOVO
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dshr 3423 F.... pulseaudio
 /dev/snd/pcmC0D0c: dshr 3423 F...m pulseaudio
CurrentDesktop: GNOME
DistroRelease: Ubuntu 18.10
InstallationDate: Installed on 2018-02-07 (248 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180128)
MachineType: LENOVO 4291QQ1
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/zsh
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-10-generic root=UUID=5501522a-496f-40cb-9b68-8ef9726b16c9 ro quiet splash vt.handoff=1
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
RelatedPackageVersions:
 linux-restricted-modules-4.18.0-10-generic N/A
 linux-backports-modules-4.18.0-10-generic N/A
 linux-firmware 1.175
Tags: cosmic
Uname: Linux 4.18.0-10-generic x86_64
UpgradeStatus: Upgraded to cosmic on 2018-09-30 (13 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 08/02/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8DET51WW (1.21 )
dmi.board.asset.tag: Not Available
dmi.board.name: 4291QQ1
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr8DET51WW(1.21):bd08/02/2011:svnLENOVO:pn4291QQ1:pvrThinkPadX220:rvnLENOVO:rn4291QQ1:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad X220
dmi.product.name: 4291QQ1
dmi.product.version: ThinkPad X220
dmi.sys.vendor: LENOVO

Revision history for this message
DSHR (s-heuer) wrote :
Revision history for this message
DSHR (s-heuer) wrote :

Syslog output from non working kernel with failed probe message:

May 27 22:12:55 ThinkPad-T550 kernel: [ 50.880075] usb 2-3: new full-speed USB device number 5 using xhci_hcd
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.040249] usb 2-3: New USB device found, idVendor=19b5, idProduct=0021
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.040251] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.040252] usb 2-3: Product: PX USB
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.040254] usb 2-3: Manufacturer: Bowers & Wilkins
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.040255] usb 2-3: SerialNumber: ABCDEF0123456789
May 27 22:12:55 ThinkPad-T550 mtp-probe: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3"
May 27 22:12:55 ThinkPad-T550 mtp-probe: bus: 2, device: 5 was not an MTP device
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.074237] hidraw: raw HID events driver (C) Jiri Kosina
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.099805] snd-usb-audio: probe of 2-3:1.0 failed with error -22
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.107942] usb 2-3: 2:1: cannot get min/max values for control 2 (id 2)
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.107984] snd-usb-audio: probe of 2-3:1.1 failed with error -22
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.112502] usbcore: registered new interface driver snd-usb-audio
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.115517] usbcore: registered new interface driver usbhid
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.115518] usbhid: USB HID core driver
May 27 22:12:55 ThinkPad-T550 kernel: [ 51.121643] input: Bowers & Wilkins PX USB as /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.2/0003:19B5:0021.000
1/input/input19

Revision history for this message
DSHR (s-heuer) wrote :

Currently this quirk seems to make things worse - at least for me with the current firmware release on the headphones.

DSHR (s-heuer)
summary: - [USB-Audio - PX USB, playback] No sound at all after kernel upgrade
+ [USB-Audio - PX USB, playback] snd-usb-audio: probe of 2-3:1.0 failed
+ with error -22 after kernel upgrade
description: updated
Revision history for this message
DSHR (s-heuer) wrote :

See https://patchwork.kernel.org/patch/10265345/. Dropping that patch and recompiling the kernel leads to a situation where alsa and pulseaudio seem to to be working again.

Adding

default-sample-rate = 48000

to /etc/pulse/daemon.conf leads to working headphones.

Maybe the patch has to be adjusted to newer firmware? A quirk seems to be really necessary to avoid the specific patch to daemon.conf.

Revision history for this message
c2h5oh (c2h5oh) wrote :

Exact same problem here. I assume the quirk added was for the previous version of headphone firmware.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1773697

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
DSHR (s-heuer) wrote :
Download full text (4.9 KiB)

Journalctl output after attaching USB device on Thinkpad X220 upgraded to cosmic ...

Okt 14 17:46:10 ThinkPad-X220 kernel: usb 1-1.2: new full-speed USB device number 4 using ehci-pci
Okt 14 17:46:11 ThinkPad-X220 kernel: usb 1-1.2: New USB device found, idVendor=19b5, idProduct=0021, bcdDevice=25.20
Okt 14 17:46:11 ThinkPad-X220 kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Okt 14 17:46:11 ThinkPad-X220 kernel: usb 1-1.2: Product: PX USB
Okt 14 17:46:11 ThinkPad-X220 kernel: usb 1-1.2: Manufacturer: Bowers & Wilkins
Okt 14 17:46:11 ThinkPad-X220 kernel: usb 1-1.2: SerialNumber: ABCDEF0123456789
Okt 14 17:46:11 ThinkPad-X220 mtp-probe[13033]: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Okt 14 17:46:11 ThinkPad-X220 mtp-probe[13033]: bus: 1, device: 4 was not an MTP device
Okt 14 17:46:11 ThinkPad-X220 kernel: usbcore: registered new interface driver snd-usb-audio
Okt 14 17:46:11 ThinkPad-X220 kernel: input: Bowers & Wilkins PX USB Consumer Control as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.2/0003:19B5:0021.0001/input/input16
Okt 14 17:46:11 ThinkPad-X220 kernel: input: Bowers & Wilkins PX USB as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.2/0003:19B5:0021.0001/input/input17
Okt 14 17:46:11 ThinkPad-X220 kernel: hid-generic 0003:19B5:0021.0001: input,hiddev2,hidraw0: USB HID v1.11 Device [Bowers & Wilkins PX USB] on usb-0000:00:1a.0-1.2/input2
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (II) config/udev: Adding input device Bowers & Wilkins PX USB Consumer Control (/dev/input/event15)
Okt 14 17:46:11 ThinkPad-X220 systemd-udevd[13036]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 1' failed with exit code 99.
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (**) Bowers & Wilkins PX USB Consumer Control: Applying InputClass "libinput keyboard catchall"
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (II) Using input driver 'libinput' for 'Bowers & Wilkins PX USB Consumer Control'
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (II) systemd-logind: got fd for /dev/input/event15 13:79 fd 46 paused 0
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (**) Bowers & Wilkins PX USB Consumer Control: always reports core events
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (**) Option "Device" "/dev/input/event15"
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (**) Option "_source" "server/udev"
Okt 14 17:46:11 ThinkPad-X220 pulseaudio[3423]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
Okt 14 17:46:11 ThinkPad-X220 pulseaudio[3423]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="usb-Bowers___Wilkins_PX_USB_ABCDEF0123456789-00" card_name="alsa_card.usb-Bowers___Wilkins_PX_USB_ABCDEF0123456789-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.
Okt 14 17:46:11 ThinkPad-X220 /usr/lib/gdm3/gdm-x-session[3218]: (II) event15 - Bowers & Wi...

Read more...

tags: added: apport-collected cosmic
description: updated
Revision history for this message
DSHR (s-heuer) wrote : AlsaInfo.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : CRDA.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : CurrentDmesg.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : IwConfig.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : Lspci.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : Lsusb.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : ProcInterrupts.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : ProcModules.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : PulseList.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : RfKill.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : UdevDb.txt

apport information

Revision history for this message
DSHR (s-heuer) wrote : WifiSyslog.txt

apport information

DSHR (s-heuer)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please raise the issue to <email address hidden> for ALSA maintainers' awareness.

Revision history for this message
DSHR (s-heuer) wrote :

Posted on alsa-devel mailing list ...

Revision history for this message
DSHR (s-heuer) wrote :

Seems to be fixed with the daily kernel image linux-image-unsigned-4.19.0-999-lowlatency

% uname -a  ✔  175  13:35:02
Linux ThinkPad-X220 4.19.0-999-lowlatency #201810312202 SMP PREEMPT Thu Nov 1 02:11:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

This version contains kernel commit c369c8db15d51fa175d2ba85928f79d16af6b562
that fixes the issue for me.

Revision history for this message
DSHR (s-heuer) wrote :

diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index 08aa78007020..849953e5775c 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -3346,19 +3346,14 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"),
                                .ifnum = 0,
                                .type = QUIRK_AUDIO_STANDARD_MIXER,
                        },
- /* Capture */
- {
- .ifnum = 1,
- .type = QUIRK_IGNORE_INTERFACE,
- },
                        /* Playback */
                        {
- .ifnum = 2,
+ .ifnum = 1,
                                .type = QUIRK_AUDIO_FIXED_ENDPOINT,
                                .data = &(const struct audioformat) {
                                        .formats = SNDRV_PCM_FMTBIT_S16_LE,
                                        .channels = 2,
- .iface = 2,
+ .iface = 1,
                                        .altsetting = 1,
                                        .altset_idx = 1,
                                        .attributes = UAC_EP_CS_ATTR_FILL_MAX |

Revision history for this message
href (h-ref) wrote :

Same problem on 4.15.0-39-generic #42-Ubuntu x86_64 @ Thinkpad W540. Can not upgrade to 4.19 because of NVIDIA driver does not support this kernel. Could you please bugfix recent kernel!?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

href, I think the fix is still needed for Bionic (v4.15) and Cosmic (v4.18) kernel?

tags: removed: cosmic
Brad Figg (brad-figg)
tags: added: cscc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.