Sound works, still returns error "alsa-util.c: Error opening PCM device"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear List members,

I have 2.6.25-14.fc9.i686; gnome.
aplay plays well, I hear through headphone.
When I run a Java applicaiton which uses sound system, it says
*** PULSEAUDIO: Unable to connect: Connection refused

AudioInput: TargetDataLine:
com.sun.media.sound.DirectAudioDevice$DirectTDL at 15 356d5
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED
22050.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.

Here are other informations, please help me troubleshoot,
alsa-tools-1.0.16-1.fc9.i386

[root at system ~]# aplay -l
card 0: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 -
IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

grep pulseaudio /var/log/messages
Apr 30 12:38:50 system pulseaudio[2551]: sink-input.c: Failed to create sink
input: too many inputs per sink.
*pulseaudio[2551]: module-alsa-sink.c: Error opening PCM device front:0:
Device or resource busy*


[root at system ~]# fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  root       2543 F.... pulseaudio
                     root       2656 F.... mixer_applet2
[root at system ~]# fuser -v /dev/dsp*
[root at system modprobe.d]# ls /dev/snd/
controlC0  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D2c  pcmC0D3c  pcmC0D4p  seq
timer
[root at system modprobe.d]# lsof /dev/snd/controlC0
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
pulseaudi 2543 root   15u   CHR 116,10      2902 /dev/snd/controlC0
pulseaudi 2543 root   21u   CHR 116,10      2902 /dev/snd/controlC0
mixer_app 2656 root   20u   CHR 116,10      2902 /dev/snd/controlC0

[user1 at system modprobe.d]$ getfacl /dev/snd/*
all the same
# file: dev/snd/controlC0
# owner: root
# group: root
user::rw-
group::rw-
mask::rw-
other::---

pulseaudio -vvv
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted

E: alsa-util.c: Error opening PCM device hw:0: No such file or directory
E: module.c: Failed to load  module "module-alsa-sink" (argument:
"device_id=0
sink_name=alsa_output.pci_8086_24d5_sound_card_0_alsa_playback_0"):
initialization failed.

Thanks in advance,
saeedora
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20090505/a3ee4139/attachment.htm>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux