Re: [pulseaudio-discuss] Sound works, still returns error alsa-util.c: Error opening PCM device

2009-05-26 Thread Lennart Poettering
On Sun, 17.05.09 13:06, Saeed Abbassi (saeed...@gmail.com) wrote:

 Hey Lennart,
 
 I've upgraded to FC 10, and tried to run my Java application, Got the same
 error,
 
 While the Java application running, the PulseAudio was running (according to
 top -p PA_process_ID)
 *javax.sound.sampled.LineUnavailableException: line with format PCM_UNSIGNED
 11025.0 Hz, 8 bit, mono, 1 bytes/frame,  not supported.*

Hmm, no clue. PA certainly supports 11025hz, u8, 1ch audio. I fear I
cannot help you much to find out why exactly your specific application
gets confused into thinking it wasn't supported.

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Sound works, still returns error alsa-util.c: Error opening PCM device

2009-05-17 Thread Saeed Abbassi
Hey Lennart,

I've upgraded to FC 10, and tried to run my Java application, Got the same
error,

While the Java application running, the PulseAudio was running (according to
top -p PA_process_ID)
*javax.sound.sampled.LineUnavailableException: line with format PCM_UNSIGNED
11025.0 Hz, 8 bit, mono, 1 bytes/frame,  not supported.*

Here is what *dmesg* says:

ALSA sound/pci/ac97/ac97_codec.c:2122: AC'97 0 analog subsections not ready
intel8x0_measure_ac97_clock: measured 51814 usecs
intel8x0: measured clock 212 rejected
intel8x0: clocking to 48000

Please, Any clue would help,
Regards,
Saeedora


On Mon, May 11, 2009 at 4:45 PM, Lennart Poettering
lenn...@poettering.netwrote:

 On Mon, 11.05.09 12:42, Saeed Abbassi (saeed...@gmail.com) wrote:

 Heya!

  PA version
  pulseaudio-0.9.10
  alsa-plugins-pulseaudio-1.0.16
 
  How do I know PulseAudio is running properly in the time of running the
 Java
  Application?

 Try ps.

 Lennart

 --
 Lennart PoetteringRed Hat, Inc.
 lennart [at] poettering [dot] net
 http://0pointer.net/lennart/   GnuPG 0x1A015CC4
 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Sound works, still returns error alsa-util.c: Error opening PCM device

2009-05-11 Thread Saeed Abbassi
Dear Lennart,
Thanks for the reply,


PA version
pulseaudio-0.9.10
alsa-plugins-pulseaudio-1.0.16

How do I know PulseAudio is running properly in the time of running the Java
Application?

How can I know abou it (How can I fix it?)

 This looks like borkage with ConsoleKit which would normally add the
 user that is active on the current console to the ACL of all devices.


Thanks again,
Saeedora



On Sun, May 10, 2009 at 3:17 AM, Lennart Poettering
lenn...@poettering.netwrote:

 On Tue, 05.05.09 19:51, Saeed Abbassi (saeed...@gmail.com) wrote:

  Dear List members,
 
  I have 2.6.25-14.fc9.i686; gnome.

 Which version of PA?

 Why are you using F9? F10 has been out for quite some time.

  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

 That means PA is not reachable, usually because it is not running.

  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.

 Some (presumably broken) application seems to create a lot of streams
 to PulseAudio. PA will eventually refuse any further connections for
 security reasons.

  *pulseaudio[2551]: module-alsa-sink.c: Error opening PCM device front:0:
  Device or resource busy*

 Some other application seems to have blocked access to the audio
 device to the effect that PA cannot use it anymore.

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

 This looks like borkage with ConsoleKit which would normally add the
 user that is active on the current console to the ACL of all devices.

 
  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

 ALSA is not particularly thruthful about error codes. This might
 actually be a permission error, although on the first glance it does
 not seem so.

 Lennart

 --
 Lennart PoetteringRed Hat, Inc.
 lennart [at] poettering [dot] net
 http://0pointer.net/lennart/   GnuPG 0x1A015CC4
 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Sound works, still returns error alsa-util.c: Error opening PCM device

2009-05-11 Thread Lennart Poettering
On Mon, 11.05.09 12:42, Saeed Abbassi (saeed...@gmail.com) wrote:

Heya!

 PA version
 pulseaudio-0.9.10
 alsa-plugins-pulseaudio-1.0.16
 
 How do I know PulseAudio is running properly in the time of running the Java
 Application?

Try ps.

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Sound works, still returns error alsa-util.c: Error opening PCM device

2009-05-09 Thread Lennart Poettering
On Tue, 05.05.09 19:51, Saeed Abbassi (saeed...@gmail.com) wrote:

 Dear List members,
 
 I have 2.6.25-14.fc9.i686; gnome.

Which version of PA?

Why are you using F9? F10 has been out for quite some time.

 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

That means PA is not reachable, usually because it is not running.

 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.

Some (presumably broken) application seems to create a lot of streams
to PulseAudio. PA will eventually refuse any further connections for
security reasons.

 *pulseaudio[2551]: module-alsa-sink.c: Error opening PCM device front:0:
 Device or resource busy*

Some other application seems to have blocked access to the audio
device to the effect that PA cannot use it anymore.

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

This looks like borkage with ConsoleKit which would normally add the
user that is active on the current console to the ACL of all devices.

 
 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

ALSA is not particularly thruthful about error codes. This might
actually be a permission error, although on the first glance it does
not seem so.

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss