thanks for help - this is getting interesting ...
I've made some slight changes to get this to work. I spot only one problem and I ask whether this is just plain limitation or could I avoid it:
- I start 3 instances of alsaplayer each on his own stereo channel (plug:a, plug:b plug:c). Now if I stop first instance and try to get it start again it won't start unless I end other two (is this just limitation of dshare or can it be somehow avoided ?).
- Is it possible to combine this setup with dmix plugin so more than one application can access stereo channels -this would be almost to good to be true :-) ?
Thanks for all help, I don't know how it was before alsa ... I'd kindly ask yet for these answers...
Regards,
Robert.
My file that works with mentioned limitations (and also dmix devices don't work - hopefully it's only matter of wrond setup):
pcm_slave.sis { pcm "hw:0" channels 6 rate 44100 buffer_size 4096 # make these sizes smaller for lower latency period_size 2048 periods 0 period_time 0 }
pcm.ch12 { type dshare ipc_key 47110815 slave sis bindings.0 0 bindings.1 1 }
pcm.ch34 { type dshare ipc_key 47110815 slave sis bindings.0 2 bindings.1 3 }
pcm.ch56 { type dshare ipc_key 47110815 slave sis bindings.0 4 bindings.1 5 }
pcm.dmix_a { type dmix ipc_key 5678293 ipc_key_add_uid yes slave.pcm ch12 } pcm.dmix_b { type dmix ipc_key 5678293 ipc_key_add_uid yes slave.pcm ch34 } pcm.dmix_c { type dmix ipc_key 5678293 ipc_key_add_uid yes slave.pcm ch56 }
pcm.a { type plug slave.pcm ch12 }
pcm.b { type plug slave.pcm ch34 }
pcm.c { type plug slave.pcm ch56 }
pcm.!default = pcm.a
Clemens Ladisch wrote:
Robert Rozman wrote:
I'd kindly ask if anyone can provide example asoundrc for using 6channel sis
7012 device as independent stereo outputs using dshare plugin.
This would be similar to the 8-channel example I've posted earlier:
pcm_slave.sis { pcm "hw:0" channels 6 rate 44800 buffer_size 4096 # make these sizes smaller for lower latency period_size 2048 }
pcm.ch12 { type dshare ipc_key 47110815 slave sis bindings.0 0 bindings.1 1 }
pcm.ch34 { type dshare ipc_key 47110815 slave sis bindings.0 2 bindings.1 3 }
pcm.ch56 { type dshare ipc_key 47110815 slave sis bindings.0 4 bindings.1 5 }
pcm.a { type plug slave.pcm ch12 } pcm.b { type plug slave.pcm ch34 } pcm.c { type plug slave.pcm ch56 }
pcm.!default = pcm.a
Now you can use "a", "b", "c" as separate stereo devices. (You'll probably want to replace these names with something more meaningful.)
HTH Clemens
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user