* alsa-lib, dmix, and snd_pcm_open_conf function
@ 2008-09-01 17:05 Simon Tremblay
2008-09-01 17:17 ` Simon Tremblay
2008-09-02 5:51 ` Jaroslav Kysela
0 siblings, 2 replies; 4+ messages in thread
From: Simon Tremblay @ 2008-09-01 17:05 UTC (permalink / raw)
To: alsa-devel
Hi,
I have a problem using dmix on my embedded system (manual installation of
alsa-lib 1.0.15)
When I play a sound with aplay, it works well.
When I try -D dmix or -D plug:dmix parameter, it doesn't work.
The output is:
aplay: main:547: audio open error: Operation not permitted
I located my problem in alsa-lib, around line 2154 of alsa-lib/src/pcm/pcm.c:
err = snd_pcm_open_conf(pcmp, name, root, pcm_conf, stream, mode); (in
snd_pcm_open_noupdate function)
err result is -1 when it's used with dmix...
I don't know how works alsa-lib. I suppose snd_pcm_open_conf has something
related with configuration files... Since I have all default configuration
files... Maybe I must tweak some to be able to use dmix...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: alsa-lib, dmix, and snd_pcm_open_conf function
2008-09-01 17:05 alsa-lib, dmix, and snd_pcm_open_conf function Simon Tremblay
@ 2008-09-01 17:17 ` Simon Tremblay
2008-09-02 5:51 ` Jaroslav Kysela
1 sibling, 0 replies; 4+ messages in thread
From: Simon Tremblay @ 2008-09-01 17:17 UTC (permalink / raw)
To: alsa-devel
Simon Tremblay <bidou <at> videotron.qc.ca> writes:
> I located my problem in alsa-lib, around line 2154 of alsa-lib/src/pcm/pcm.c:
>
> err = snd_pcm_open_conf(pcmp, name, root, pcm_conf, stream, mode); (in
> snd_pcm_open_noupdate function)
>
> err result is -1 when it's used with dmix...
>
Note that I get 1 for snd_config_search_definition return value.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: alsa-lib, dmix, and snd_pcm_open_conf function
2008-09-01 17:05 alsa-lib, dmix, and snd_pcm_open_conf function Simon Tremblay
2008-09-01 17:17 ` Simon Tremblay
@ 2008-09-02 5:51 ` Jaroslav Kysela
2008-09-05 0:27 ` Simon Tremblay
1 sibling, 1 reply; 4+ messages in thread
From: Jaroslav Kysela @ 2008-09-02 5:51 UTC (permalink / raw)
To: Simon Tremblay; +Cc: alsa-devel
On Mon, 1 Sep 2008, Simon Tremblay wrote:
> Hi,
>
> I have a problem using dmix on my embedded system (manual installation of
> alsa-lib 1.0.15)
>
> When I play a sound with aplay, it works well.
>
> When I try -D dmix or -D plug:dmix parameter, it doesn't work.
>
> The output is:
>
> aplay: main:547: audio open error: Operation not permitted
strace will help you. I would look to ipc permissions (alsa.conf):
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
Jaroslav
-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: alsa-lib, dmix, and snd_pcm_open_conf function
2008-09-02 5:51 ` Jaroslav Kysela
@ 2008-09-05 0:27 ` Simon Tremblay
0 siblings, 0 replies; 4+ messages in thread
From: Simon Tremblay @ 2008-09-05 0:27 UTC (permalink / raw)
To: alsa-devel
Jaroslav Kysela a écrit :
> On Mon, 1 Sep 2008, Simon Tremblay wrote:
>
>
>> Hi,
>>
>> I have a problem using dmix on my embedded system (manual installation of
>> alsa-lib 1.0.15)
>>
>> When I play a sound with aplay, it works well.
>>
>> When I try -D dmix or -D plug:dmix parameter, it doesn't work.
>>
>> The output is:
>>
>> aplay: main:547: audio open error: Operation not permitted
>>
>
> strace will help you. I would look to ipc permissions (alsa.conf):
>
> defaults.pcm.ipc_gid audio
> defaults.pcm.ipc_perm 066
Thanks, but I just want to know where I manage that for IPC? I created
an audio group and my /dev/snd/* files are in this group and have 0660
as permissions.
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-05 0:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 17:05 alsa-lib, dmix, and snd_pcm_open_conf function Simon Tremblay
2008-09-01 17:17 ` Simon Tremblay
2008-09-02 5:51 ` Jaroslav Kysela
2008-09-05 0:27 ` Simon Tremblay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox