Bug 583168

Summary: Pulseaudio hangs on startup with USB audio errors
Product: [Fedora] Fedora Reporter: Yves Perrenoud <yves-redhat>
Component: kernelAssignee: Jaroslav Kysela <jkysela>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 12CC: anton, dougsland, Fusion.Reactor1, gansalmon, hoffmann, itamar, jensk.maps, jonathan, kernel-maint, leo_bosnjak, lkundrak, lpoetter, sergei.litvinenko
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 663583 (view as bug list) Environment:
Last Closed: 2010-12-03 15:48:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yves Perrenoud 2010-04-16 21:33:14 UTC
Description of problem:

I have three sound devices, an Intel HDA on-board, a SoundBlaster Audigy 2 and a Logitech Quickcam Pro 9000. The camera is obviously just a USB sound input device.

When I log in to gnome, and hence the pulseaudio daemon is started, 50% of the time (maybe more), the daemon hangs. None of the clients (volume control, audio player, etc..) respond (they start and hang themselves). When this happens, the following errors are visible when running "dmesg":

ALSA sound/usb/usbmixer.c:405: cannot get current value for control 1 ch 0: err = -22
ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86

The second line repeats continuously about once per second until I kill the pulseaudio daemon (and a TERM signal isn't enough, it requires a KILL signal).

The underlying problem may well lie within the "snd_usb_audio" ALSA kernel module, I certainly don't understand enough about the internals of either ALSA or Pulseaudio to make that determination, but if the problem is with ALSA, then the pulseaudio daemon should handle the error more gracefully and simply mark that device as unusable, off-line, etc...

In any case, I had exactly the same hardware setup while running Fedora 11, and the sound input from the camera worked flawlessly and pulseaudio was completely stable.

Version-Release number of selected component (if applicable):

pulseaudio-0.9.21-5.fc12.i686
kernel-2.6.32.11-99.fc12.i686

How reproducible:

Approximatively 50% of the time.

Steps to Reproduce:
1. Login to gnome
2. Witness the volume applet not appear in the systray
3. run dmesg and see the error messages

Comment 1 Lennart Poettering 2010-04-18 19:33:50 UTC
Looks indeed like a driver problem that causes userspace requests to hang to that specific card and then causing the entire daemon to hang.

Reassigning to kernel.

Please append the full output of dmesg when this happens as well as the output of alsa-info.sh --no-upload.

Comment 2 Mike Chambers 2010-04-19 09:06:15 UTC
I have the sound applet in gnome and sound seems to work, but I do have the error message as the reporter has.  My system is 64bit but F13.

kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86

Same bug or need to open new bug?

Comment 3 Leo Bosnjak 2010-04-21 20:06:59 UTC
Almost the same story here, although I don't know how to reproduce it:

My soundcard (lsusb output):
Bus 002 Device 003: ID 0d8c:0201 C-Media Electronics, Inc. CM6501

My OS (uname -r output):
2.6.32.11-99.fc12.x86_64

Apr 20 20:35:26 BLACKTWIN pulseaudio[3763]: alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write!
Apr 20 20:35:26 BLACKTWIN pulseaudio[3763]: alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALSA developers.
Apr 20 20:35:26 BLACKTWIN pulseaudio[3763]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Apr 20 20:35:33 BLACKTWIN pulseaudio[3763]: ratelimit.c: 908 events suppressed
Apr 20 20:35:41 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:42 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:43 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:44 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:45 BLACKTWIN pulseaudio[3763]: alsa-source.c: Failed to set hardware parameters: Die Wartezeit für die Verbindung ist abgelaufen
Apr 20 20:35:45 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:46 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:47 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:48 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:49 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 20:35:50 BLACKTWIN pulseaudio[3763]: alsa-source.c: Failed to set hardware parameters: Die Wartezeit für die Verbindung ist abgelaufen
.
<These messages repeat almost the next 2 hours>
.
Apr 20 22:26:39 BLACKTWIN pulseaudio[3763]: sink-input.c: Failed to create sink input: sink is suspended.
Apr 20 22:26:40 BLACKTWIN pulseaudio[3763]: sink-input.c: Failed to create sink input: too many inputs per sink.
Apr 20 22:26:40 BLACKTWIN pulseaudio[3763]: sink-input.c: Failed to create sink input: too many inputs per sink.
.
.
.
Apr 20 22:30:40 BLACKTWIN pulseaudio[10651]: alsa-mixer.c: Your kernel driver is broken: it reports a volume range from 0,00 dB to 0,00 dB which makes no sense.
Apr 20 22:30:40 BLACKTWIN pulseaudio[10651]: alsa-mixer.c: Your kernel driver is broken: it reports a volume range from 0,00 dB to 0,00 dB which makes no sense.
Apr 20 22:30:40 BLACKTWIN pulseaudio[10651]: alsa-mixer.c: Your kernel driver is broken: it reports a volume range from 0,00 dB to 0,00 dB which makes no sense.
Apr 20 22:30:42 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
Apr 20 22:30:43 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
.
Apr 20 22:31:01 BLACKTWIN pulseaudio[10651]: module-alsa-card.c: Failed to find a working profile.
Apr 20 22:31:01 BLACKTWIN pulseaudio[10651]: module.c: Failed to load  module "module-alsa-card" (argument: "device_id="1" name="usb-046d_0990_73D7DC54-02" card_name="alsa_card.usb-046d_0990_73D7DC54-02" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1""): initialization failed.
Apr 20 22:31:01 BLACKTWIN pulseaudio[10859]: pid.c: Daemon already running.
Apr 20 22:31:01 BLACKTWIN pulseaudio[10861]: pid.c: Daemon already running.
Apr 20 22:31:01 BLACKTWIN pulseaudio[10862]: pid.c: Daemon already running.
Apr 20 22:31:02 BLACKTWIN kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86

I hope this is of any help.

Comment 4 Jens Knutson 2010-05-08 21:03:59 UTC
Running F13 beta, 32 bit, with all updates as of this posting, I experience this same problem.

Comment 5 Sergei LITVINENKO 2010-05-17 19:24:04 UTC
I have the same problem. Skype and Video+Audio from webcam (microphone on webcam).

[root@homedesk ~]# cat /proc/asound/cards
0 [Live]: EMU10K1 - SB Live! 5.1 Dell OEM [SB0228]
  SB Live! 5.1 Dell OEM [SB0228] (rev.10, serial:0x80661102) at 0xe880, irq 18
1 [Q9000]: USB-Audio - QuickCam Pro 9000
  Logitech, Inc. QuickCam Pro 9000 at usb-0000:00:1d.7-2, high speed

After using Video and Audio in the same time (skype-2.1.0.81-fc10.i586), I have the problem.

---
May 17 22:18:53 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:18:54 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:18:55 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:18:56 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:18:57 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:18:57 homedesk pulseaudio[3951]: alsa-source.c: Failed to set hardware parameters: Время ожидания соединения истекло
May 17 22:18:58 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:18:59 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:19:00 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:19:01 homedesk kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
May 17 22:19:02 homedesk pulseaudio[3951]: alsa-source.c: Failed to set hardware parameters: Время ожидания соединения истекло

Comment 6 Marko-M 2010-06-17 16:07:11 UTC
Same here...Every other startup it shows it's ugly head. It must be bug within snd-usb-audio. When it happens my sound icon shows x like no sound. Clicking on it says "Waiting for sound system to respond." and going to tty with Ctrl-Alt-F1 or any other says something like "cannot set freq 16000 to ep 0x86". After restart if it works it works forever or until next restart depending how lucky I am :) Get the exact same thing on Fedora since Fedora 10 and Ubuntu since Jaunty (9.04).

Comment 7 Bug Zapper 2010-11-03 16:57:18 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Bug Zapper 2010-12-03 15:48:29 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Dirk Hoffmann 2011-03-15 00:11:39 UTC
(In reply to comment #2)
> I have the sound applet in gnome and sound seems to work, but I do have the
> error message as the reporter has.  My system is 64bit but F13.
> 
> kernel: ALSA sound/usb/usbaudio.c:1290: 3:3:1: cannot set freq 16000 to ep 0x86
> 
> Same bug or need to open new bug?

(In reply to comment #4)
> Running F13 beta, 32 bit, with all updates as of this posting, I experience
> this same problem.


@(In reply to comment #7)

> Bug Reporter: Thank you for reporting this issue and we are sorry that 
> we may not be able to fix it before Fedora 12 is end of life.  If you 
> would still like to see this bug fixed and are able to reproduce it 
> against a later version of Fedora please change the 'version' of this 
> bug to the applicable version.  If you are unable to change the version, 
> please add a comment here and someone will do it for you.

"A COMMENT" (Please assign it to Fedora 13, as the two comments above indicate it is still valid for F13!) Thank you.