Skip to contentSkip to conversation

.asoundrc - share device

DISCUSSION Patrick Shirkey 4 participants 4 messages Feb 28, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · --- "Ivica Bukvic

Is there anyone else with some kind of experience in this field? Maybe it is time to start documenting this potentially awesome feature... I could easily provide webspace and/or maintain the docs webpage if needed, as long as I can get a pool of people working on this issue with me... Anyone interested?

Definitely but no need to set up a specific website for it. We just add it to the alsa-howto wiki. Which reminds me of the other wiki that was started for documenting the internals of the code. Did it get taken offline or not?

I attempted to get the share device working a little while ago but had no luck. I can try again though. Actually, at the time Abramo said that it was possible but that it had not been coded completely yet due to funding constraints. Is that right or was it not specific to the share device?

--
Patrick Shirkey - Boost Hardware Ltd
For the discerning hardware connoisseur Http://www.boosthardware.com Http://www.boosthardware.com/LAU/Linux_Audio_Users_Guide/

_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net

_____________________________________________________________
You deserve a better email address! Get personalized email @yourname or @yourcompany from Everyone.net --> http://www.everyone.net?tag

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw
Quoted 5 lines · Patrick Shirkey

I attempted to get the share device working a little while ago but had no luck. I can try again though. Actually, at the time Abramo said that it was possible but that it had not been coded completely yet due to funding constraints. Is that right or was it not specific to the share device?

It's good to note that the current pcm_share plugin that exists does not allow mixing audio from multiple source channels to one output channel. Instead it can be used to allow multiple clients to access different channels of one PCM device at the same time.

For instance you could have share1, which outputs to hw:0 channels 1 and 2, and share2 which outputs to hw:0 channels 3 and 4.

What is missing is a pcm_mix plugin, which allows multiple clients to write to the same channels (like esd, arts and other audio daemons).

Another currently available option is to use the pcm_shm plugin which outputs audio to a separate aserver process (see alsa-lib/aserver). This plugin does work, but like pcm_share, hasn't been widely used yet. But it's the only working ALSA alternative for concurrent pcm access at the moment.

Signature · 8 lines
 http://www.eca.cx
 Audio software for Linux!


_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
#2 lore raw
Quoted 16 lines · Kai Vehmanen
Quoted 5 lines · Patrick Shirkey

I attempted to get the share device working a little while ago but had no luck. I can try again though. Actually, at the time Abramo said that it was possible but that it had not been coded completely yet due to funding constraints. Is that right or was it not specific to the share device?

It's good to note that the current pcm_share plugin that exists does not allow mixing audio from multiple source channels to one output channel. Instead it can be used to allow multiple clients to access different channels of one PCM device at the same time.

For instance you could have share1, which outputs to hw:0 channels 1 and 2, and share2 which outputs to hw:0 channels 3 and 4.

Quoted 8 lines

What is missing is a pcm_mix plugin, which allows multiple clients to write to the same channels (like esd, arts and other audio daemons).

Another currently available option is to use the pcm_shm plugin which outputs audio to a separate aserver process (see alsa-lib/aserver). This plugin does work, but like pcm_share, hasn't been widely used yet. But it's the only working ALSA alternative for concurrent pcm access at the moment.

It's not another option, but the share plugin should be used simultaneously with the shm plugin allowing reroute streams from multiple applications to one process (aserver). The share plugin hasn't an inter-process communication feature.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw
In reply to Kai Vehmanen
Quoted 5 lines

Another currently available option is to use the pcm_shm plugin which outputs audio to a separate aserver process (see alsa-lib/aserver). This plugin does work, but like pcm_share, hasn't been widely used yet. But it's the only working ALSA alternative for concurrent pcm access at the moment.

thanks Kai. the "shm" device type is the one i have always been referring to when i have used the term "share". apologies for the confusion.

--p

ps. in case anyone finds Kai's last sentence via Google, let me add
"concurrent pcm access *to hardware that does not support it*" so that nobody thinks that ALSA can't do this in the simple cases :)

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel