PDA

View Full Version : ALSA/pulseaudio Problem



Webgeek
19th January 2008, 01:38 AM
I have Fedora 8 installed on a Dell E1705 laptop with an integrated Sigmatel soundcard. I was trying to get pulseaudio to work with ALSA. I tried the intstruction on the pulseaudio wiki, this page: http://bertrandbenoit.blogspot.com/2007/11/fix-setup-of-pulseaudio-under-gnufedora.html , and idiosync's howto on this forum. Somewhere in the middle of that I messed up the basic ALSA setup and now I can't get alsa to work at all, with or with out pulseaudio. I know that the soundcard still works because OSS still works in amarok and kaffeine.

Relevant info:

Output of alsamixer

*** PULSEAUDIO: Unable to connect: Connection refused

alsamixer: function snd_ctl_open failed for default: Connection refused


Output of pulseaudio (as normal user)

W: polkit.c: Failed to show grant dialog: Unable to lookup exe for caller
W: polkit.c: PolicyKit responded with 'auth_admin_keep_always'
N: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
N: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
N: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM dmix
E: alsa-util.c: Error opening PCM device dmix: No such device
E: module.c: Failed to load module "module-alsa-sink" (argument: "sink_name=output device=dmix"): initialization failed.
E: main.c: daemon/main.c : Fatal error. Default sink name (output) does not exist in name register.

Output of pulseaudio -vv (as root)

I: core-util.c: Successfully gained nice level -11.
W: main.c: This program is not intended to be run as root (unless --system is specified).
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: sink.c: Created sink 0 "null" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "null.monitor" with sample spec "s16le 2ch 44100Hz"
D: module-null-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module.c: Loaded "module-null-sink" (index: #0; argument: "").
I: module.c: Loaded "module-esound-protocol-unix" (index: #1; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
I: client.c: Created 0 "STDIN/STDOUT client"
I: module.c: Loaded "module-cli" (index: #3; argument: "").
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM dmix
E: alsa-util.c: Error opening PCM device dmix: No such device
E: module.c: Failed to load module "module-alsa-sink" (argument: "sink_name=output device=dmix"): initialization failed.
E: main.c: daemon/main.c : Fatal error. Default sink name (output) does not exist in name register.
I: module.c: Unloading "module-null-sink" (index: #0).
D: module-null-sink.c: Thread shutting down
I: sink.c: Freeing sink 0 "null"
I: source.c: Freeing source 0 "null.monitor"
I: module.c: Unloaded "module-null-sink" (index: #0).
I: module.c: Unloading "module-esound-protocol-unix" (index: #1).
I: module.c: Unloaded "module-esound-protocol-unix" (index: #1).
I: module.c: Unloading "module-native-protocol-unix" (index: #2).
I: module.c: Unloaded "module-native-protocol-unix" (index: #2).
I: module.c: Unloading "module-cli" (index: #3).
I: client.c: Freed 0 "STDIN/STDOUT client"
I: module.c: Unloaded "module-cli" (index: #3).
I: main.c: Daemon terminated.

Output of '/sbin/lspci |grep Audio'

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)

Output of '/sbin/lsmod |grep snd

snd_hda_intel 361577 1
snd_seq_dummy 11461 0
snd_seq_oss 37313 0
snd_seq_midi_event 15041 1 snd_seq_oss
snd_seq 56673 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 15061 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 45889 0
snd_mixer_oss 22721 2 snd_pcm_oss
snd_pcm 80201 2 snd_hda_intel,snd_pcm_oss
snd_timer 27721 2 snd_seq,snd_pcm
snd_page_alloc 16465 2 snd_hda_intel,snd_pcm
snd_hwdep 16073 1 snd_hda_intel
snd 60137 9 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,s nd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwd ep
soundcore 15073 2 snd

Output of 'cat /etc/modprobe.conf'

alias eth0 b44
alias scsi_hostadapter libata
alias scsi_hostadapter1 ata_piix
alias wlan0 b43
alias eth1 rndis_host
alias snd-card-0 snd-hda-intel
options snd-hda-intel model=ref
options snd-card-0 model=ref

Output of 'cat /proc/asound/cards'

0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xefffc000 irq 21

Output of 'cat /proc/asound/card0/codec#* |grep Codec'

Codec: SigmaTel STAC9200
Codec: Conexant ID 2bfa

Output of 'cat /proc/asound/devices'

2: : timer
3: : sequencer
4: [ 0- 1]: digital audio playback
5: [ 0- 1]: digital audio capture
6: [ 0- 0]: digital audio playback
7: [ 0- 0]: digital audio capture
8: [ 0- 1]: hardware dependent
9: [ 0- 0]: hardware dependent
10: [ 0] : control

Output of 'cat /etc/asound.conf'

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

pcm.dmixed {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
#format "S32_LE"
#periods 128
rate 44100
}
}

pcm.dsp0 {
type plug
slave.pcm "dmixed"
}

# This following device can fool some applications into using pulseaudio
pcm.dsp1 {
type plug
slave.pcm "pulse"
}

ctl.mixer0 {
type hw
card 0
}

# Part II directly from Pulseaudio Wiki

pcm.pulse {
type pulse
}

ctl.pulse {
type pulse
}

# Optional, set defaults

pcm.!default {
type pulse
}

ctl.!default {
type pulse
}

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

Output of 'cat /etc/pulse/default.pa'

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

pcm.dmixed {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
#format "S32_LE"
#periods 128
rate 44100
}
}

pcm.dsp0 {
type plug
slave.pcm "dmixed"
}

# This following device can fool some applications into using pulseaudio
pcm.dsp1 {
type plug
slave.pcm "pulse"
}

ctl.mixer0 {
type hw
card 0
}

# Part II directly from Pulseaudio Wiki

pcm.pulse {
type pulse
}

ctl.pulse {
type pulse
}

# Optional, set defaults

pcm.!default {
type pulse
}

ctl.!default {
type pulse
}

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

I hope that is enough info. ;)

Webgeek

Webgeek
19th January 2008, 07:41 PM
Bump. Sorry, but I need to at least get ALSA running again asap.

Webgeek

Dies
19th January 2008, 08:09 PM
I would start from the beginning.

What I mean by that is go back to basics. In my case I had no sound, so I removed everything related to pulse audio and focused on getting alsa working, once I had alsa working normally re-installed all the pulse audio stuff and that approach worked well for me. YMMV.

Also have you updated the system while trying to get this going? Is it possible that an update broke your sound?

Webgeek
19th January 2008, 08:43 PM
I have the software updater running and I update everytime it tells me there is something new. I tried uninstalling everything related to pulseaudio once. I guess it wouldn't hurt to try again.

Webgeek

Edit: Okay, I removed as much as I could, but a few packages didn't want to go: pulseaudio-libs and akode-pulseaudio. If I try to remove either of those, yum wants to remove most of Fedora's audio subsystem.

Output now from alsamixer

alsamixer: function snd_ctl_open failed for default: No such device

alpay gives me a little more info:

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:546: audio open error: No such device

Which is kinda wierd since 'cat /proc/asound/cards'

0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xefffc000 irq 21

Unlimited
2nd February 2008, 11:02 PM
I'm having a very similar issue with PulseAudio

Attempting to open PulseAudio Volume Control fails with an X error stating "Connection failed: Connection refused"

Most of my output looks the same as the original posters except

/sbin/lspci |grep Audio:

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

Also, my system mysteriously lacks any /etc/asound.conf

Has any head-way been made on this issue? I've already tried reinstalling PulseAudio to no effect.

szandor
3rd February 2008, 03:59 AM
I'm having a very similar issue with PulseAudio

Attempting to open PulseAudio Volume Control fails with an X error stating "Connection failed: Connection refused"

Most of my output looks the same as the original posters except

/sbin/lspci |grep Audio:

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

Also, my system mysteriously lacks any /etc/asound.conf

Has any head-way been made on this issue? I've already tried reinstalling PulseAudio to no effect.

you have to create the /etc/asound.conf. technically, you do not need this file unless it's being used as a workaround to get sound to work. alsa does not need it. also, it's suggested that you file a bug report if your system does not work without one, excluding pulseaudio scenarios. the file activates the pulse/alsa/plugin. it's also used for routing, converting sample rates, virtual devices, or mapping device names. i.e. front:0 to hw:0. or something like that. i currently use asound.conf for alsa-plugins-pulseaudio to get wine to work with pulseaudio. i still get annoying messages in my log files every now and then about my device names, but, pulseaudio sorts it out and sound works for everything. the only thing i really need to fix at the moment is to set my sample rate for my mic which i'll probably need to do in asound.conf.

Anthony-787
3rd February 2008, 06:11 AM
I've run into the same issue as well, seems to have coincided with a batch of FC8 updates yesterday:

Feb 03 00:33:03 Updated: readline - 5.2-10.fc8.x86_64
Feb 03 00:33:06 Updated: pilot-link - 2:0.12.2-17.fc8.x86_64
Feb 03 00:33:07 Updated: file-libs - 4.21-5.fc8.x86_64
Feb 03 00:33:08 Updated: ilmbase - 1.0.1-1.fc8.x86_64
Feb 03 00:33:08 Updated: OpenEXR-libs - 1.6.1-3.fc8.x86_64
Feb 03 00:33:16 Updated: ghostscript - 8.61-6.fc8.x86_64
Feb 03 00:33:20 Updated: gutenprint - 5.0.2-1.fc8.x86_64
Feb 03 00:33:23 Updated: tomcat5-servlet-2.4-api - 5.5.25-3jpp.1.fc8.x86_64
Feb 03 00:33:46 Updated: foomatic - 3.0.2-53.fc8.x86_64
Feb 03 00:33:47 Updated: SDL_image - 1.2.6-5.fc8.x86_64
Feb 03 00:33:48 Updated: libthai - 0.1.9-2.fc8.x86_64
Feb 03 00:33:49 Updated: tomcat5-jsp-2.0-api - 5.5.25-3jpp.1.fc8.x86_64
Feb 03 00:33:49 Updated: gutenprint-plugin - 5.0.2-1.fc8.x86_64
Feb 03 00:33:50 Updated: file - 4.21-5.fc8.x86_64
Feb 03 00:33:50 Updated: notify-python - 0.1.1-2.fc8.x86_64
Feb 03 00:33:53 Updated: lynx - 2.8.6-10.fc8.x86_64
Feb 03 00:33:54 Updated: readline - 5.2-10.fc8.i386
Feb 03 00:33:58 Updated: ghostscript - 8.61-6.fc8.i386
Feb 03 00:33:59 Updated: ilmbase - 1.0.1-1.fc8.i386
Feb 03 00:34:00 Updated: readline-devel - 5.2-10.fc8.i386
Feb 03 00:34:01 Updated: pilot-link-devel - 2:0.12.2-17.fc8.x86_64
Feb 03 00:34:02 Updated: readline-devel - 5.2-10.fc8.x86_64
Feb 03 00:34:06 Updated: gutenprint-foomatic - 5.0.2-1.fc8.x86_64
Feb 03 00:34:07 Updated: OpenEXR-libs - 1.6.1-3.fc8.i386
Feb 03 00:34:08 Updated: gutenprint - 5.0.2-1.fc8.i386
Feb 03 00:34:10 Updated: pilot-link - 2:0.12.2-17.fc8.i386
Feb 03 00:34:11 Installed: kdebase-libs - 6:3.5.8-31.fc8.x86_64
Feb 03 00:34:33 Updated: kdebase - 6:3.5.8-31.fc8.x86_64
Feb 03 00:34:42 Updated: kdebase-libs - 6:3.5.8-31.fc8.i386

I'm using Amarok under Gnome, and it plays one song, when it changes to the next song, it freezes.
this is on a Dell D830 with the integrated sound:
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)


I'm having a very similar issue with PulseAudio

Attempting to open PulseAudio Volume Control fails with an X error stating "Connection failed: Connection refused"

Most of my output looks the same as the original posters except

/sbin/lspci |grep Audio:

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

Also, my system mysteriously lacks any /etc/asound.conf

Has any head-way been made on this issue? I've already tried reinstalling PulseAudio to no effect.

szandor
5th February 2008, 09:28 PM
try looking through your logs, ps, lsof, etc. more than likely the daemon is already running and there is a lock or existing pid you need to remove/kill.

reinstalling/restarting pa won't resolve your asound.conf issue. you need to manually create the file.