[karmic] Failed to load module "module-alsa-card": initialization failed

Bug #382440 reported by Steve Langasek
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pulseaudio

pulseaudio is failing to attach to the alsa device here after upgrading from jaunty to karmic:

Jun 1 07:42:24 dario pulseaudio[4693]: module-alsa-card.c: Failed to find a working profile.
Jun 1 07:42:24 dario pulseaudio[4693]: module.c: Failed to load module "module-alsa-card" (argument: "device_id=0 name=pci_8086_27d8_sound_card_0 card_name=alsa_card.pci_8086_27d8_sound_card_0 tsched=0"): initialization failed.

This card worked fine in jaunty and before. If I switch GNOME to use OSS output to bypass pulseaudio, it works fine.

ProblemType: Bug
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1p', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer', '/dev/sequencer2'] failed with exit code 1:
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xee240000 irq 17'
   Mixer name : 'Analog Devices AD1981'
   Components : 'HDA:11d41981,17aa2025,00100200'
   Controls : 21
   Simple ctrls : 12
Date: Mon Jun 1 08:09:05 2009
DistroRelease: Ubuntu 9.10
Package: pulseaudio 1:0.9.15-2ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.30-6.7-generic
SourcePackage: pulseaudio
Uname: Linux 2.6.30-6-generic x86_64

Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote :

The fuser-generated output seems to be missing information; what is the full result when run with sudo prepended (i.e., sudo fuser -v /dev/dsp* /dev/snd/*)?

Please killall pulseaudio and strace -f pulseaudio -vv.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Steve Langasek (vorlon) wrote :

> The fuser-generated output seems to be missing information;

It's not. The apport hook is buggy - fuser always exits non-zero when no matching processes are found. And none of these devices were open at the time.

Killing pulseaudio and restarting it seems to have caused it to right itself, for no clear reason. I'll retest in a bit to see whether the problem is reproducible with a logout/login.

Revision history for this message
Steve Langasek (vorlon) wrote :

A logout/login cycle, and a reboot, and pulseaudio is still working fine. So I guess this may be a race condition...

Revision history for this message
Steve Langasek (vorlon) wrote :

setting back to 'new', since all the available information is here.

Changed in pulseaudio (Ubuntu):
status: Incomplete → New
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

Ok, I just had this issue here also.

I did alsa reload, and restarted pulseaudio, and it works again ! Please try it out ! :)

Revision history for this message
Andrew Draskoy (adraskoy) wrote :

Nothing seems to fix this for me. After killing pulseaudio with autospawn set to "no" I am able to use the second card (m2496/ice1712) just fine via ALSA. When pulseaudio is running all looks fine in the GUIs. It is set to send sound to both cards simultaneously, and they both show up, but there is only sound from the built-in card, not the m2496.

Revision history for this message
mhazen (markh) wrote :

Confirming this bug, and the solution to getting the card driver to properly load being as documented above. I have a different interface (TASCAM US-122L) but the same exact issues and errors. Creating ~/.pulse/client.conf with the line "autospawn = no", stopping JACK and issuing a "sudo alsa reload". The only other significant difference is that I'm using a core2 duo machine not an AMD one, with the i386 install of Ubuntu Studio. Since the issue is the same and the diagnostic outputs are identical though, I don't believe this to be relevant.

I will add, however, that any apps I'd started which attempted to use ALSA were stuck in the background and had to be manually killed (identified by the warnings issued by the alsa reload), and then an additional alsa reload worked.

I've been documenting my experiences in a reddit thread at http://www.reddit.com/r/WeAreTheMusicMakers/comments/a4861/where_to_start_with_linux_music_apps/ but there's not really more pertinent info, just a little more description.

I can post whatever diagnostics people wish, but they're identical to the ones listed above.

Revision history for this message
Daniel T Chen (crimsun) wrote :

For everyone not using an identical HDA codec to Steve's, if this symptom is reproducible using the most current daily-live desktop image of Lucid, please file a separate bug.

Changed in pulseaudio (Ubuntu):
status: New → Fix Released
Revision history for this message
vj (vladakuca) wrote :

I am also affected by this bug, and the method described in comment 9 solved the issue. Thanks mhazen :)

I have amd 64 and built in sound card

Revision history for this message
Gorka Navarrete (emrys) wrote :

I am also affected with kernel 2.6.31-21 in Karmic with a Macbook Pro 5,3.

The problem has been here since 31-18

Revision history for this message
apporc (appleorchard2000) wrote :

I am also affected with kernel 2.6.31-21 in ubuntu 10.04 LST in IBM thinkpad T42p 2373
module-alsa-card.c: Failed to find a working profile
module.c: Failed to load module "module-alsa-card" (argument: "device_id="29" name="platform-thinkpad_acpi" card_name="alsa_card.platform-thinkpad_acpi" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1""): initialization failed

this error occured during the boot,and i find it in the /var/log/syslog

But as i tried ,I can play music very well with totem.

if i do this:
pulseaudio --kill
pulseaudio --start

there isn't any errors.

Revision history for this message
Gorka Navarrete (emrys) wrote :

Upgrading to Lucid solves the problem...

Revision history for this message
FeNUMe (fenumed) wrote :

have same problem after updating lucid(

gnome-volume-control-applet don't autostarting
tvtime volume control don't working

But sound is working.

In system:
Reatek ALC850(as NVidia CK804)
HD Ati HDMI(Radeon hd2400)
AverMedia TV 305

In log:
pulseaudio[3524]: module-alsa-card.c: Failed to find a working profile.
pulseaudio[3524]: module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1""): initialization failed.

module-udev-detect found wrong card(

in /dev/.udev/db/ i have
sound:card0(this ATI HD)
sound:card1(this is empty file, and i think pulseaudio trying use it)
sound:card2(this NVidia CK804 - Realtek ALC850)

Changed in pulseaudio (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

You don't have the same problem, this is fixed for me. Please file a new bug report for your issue.

Changed in pulseaudio (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Nicolas BLAZY (carpediem666fr) wrote :

on ubuntu 12.04 . kernel 3.2.0-24-generic-pae

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.