All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Colin Guthrie <gmane@colin.guthr.ie>
Cc: alsa-devel@alsa-project.org, Ash <hashbrown100@hotmail.com>
Subject: Re: Issue with Alsa and PulseAudio
Date: Tue, 26 Aug 2008 17:32:16 +0200	[thread overview]
Message-ID: <s5hd4jvlrlr.wl%tiwai@suse.de> (raw)
In-Reply-To: <g9171a$jko$1@ger.gmane.org>

At Tue, 26 Aug 2008 16:21:13 +0100,
Colin Guthrie wrote:
> 
> Hi Ash,
> 
> Ash wrote:
> > Hello, I have a media application that uses alsa as its sound
> > renderer. It has worked on numerous systems without any problems
> > until I came across a mandriva distro that bundles with PulseAudio.
> > The alsa pulseaudio plugin is installed correctly, however I am
> > having weird problems.
> > 
> > When I am setting up my hw params, and I call
> > snd_pcm_hw_params_any(), I get an "Operation not permitted" error. I
> > am not sure why this is happening, anyone else see this before? I am
> > using pulseaudio version 0.9.9 and alsa 1.0.16.
> > 
> > Thanks in advance!
> 
> I'm the Mandriva PulseAudio maintainer. Most distros are now shipping PA 
> by default now so I doubt your problem will be specific to Mandriva :)
> 
> However, I'm not expert enough in the ALSA API to know specifically what 
> snd_pcm_hw_params_any() actually does, but I'd imagine (this is just a 
> guess) that this is something that is either not implemented in the 
> IOPLUG system (on which the pulseaudio alsa plugin builds) or something 
> not implemented in the pulseaudio alsa plugin itself.
> 
> Hopefully someone more versed in this can explain the reason why it 
> fails. :)

There is no alsa-lib code that returns -EPERM by itself.
Usually this error comes from the ioctl, but in this case, it must be
from pulse plugin.  And, pcm_pulse.c contains no EPERM, it must come
from the pulseaudio itself.

So, my rough guess is that PA is running by a different user
(e.g. root) that doesn't allow you to connect it.

Of course, first I'd do is to upgrade alsa-lib and alsa-plugins.
1.0.16 is fairly old.


Takashi

  reply	other threads:[~2008-08-26 15:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-26  8:30 Issue with Alsa and PulseAudio Ash
2008-08-26 15:21 ` Colin Guthrie
2008-08-26 15:32   ` Takashi Iwai [this message]
2008-08-26 15:39     ` Colin Guthrie
2008-08-26 15:58       ` Takashi Iwai
2008-08-26 15:58       ` Takashi Iwai
2008-08-26 17:08       ` Ash
2008-08-26 22:13         ` Colin Guthrie
2009-02-11  6:49 ` Ludovico Cavedon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hd4jvlrlr.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=gmane@colin.guthr.ie \
    --cc=hashbrown100@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.