Re: [Alsa-user] Proper syntax of "copy" plugin

2015-03-27 Thread Nikolay Dimitrov
Hi Clemens, On 03/27/2015 09:34 AM, Clemens Ladisch wrote: > Nikolay Dimitrov wrote: >> Is it possible to make the Duplicate device a little bit more >> "fool-proof" - e.g. to work with 2 devices when available, and to >> gracefully fallback to 1 device playback when the other is missing? > > Not

Re: [Alsa-user] Proper syntax of "copy" plugin

2015-03-27 Thread Clemens Ladisch
Nikolay Dimitrov wrote: > Is it possible to make the Duplicate device a little bit more > "fool-proof" - e.g. to work with 2 devices when available, and to > gracefully fallback to 1 device playback when the other is missing? Not easily. I've heard of people who have installed a udev script to sw

Re: [Alsa-user] Proper syntax of "copy" plugin

2015-03-26 Thread Nikolay Dimitrov
Hi Clemens, If we get back to your great example: pcm.Duplicate { type plug slave.pcm { type multi slaves { a { pcm "hw:0,0" channels 2 } b { pcm "hw:1,0" channels 2 } } bindings [ { slave a channel 0 }

Re: [Alsa-user] Proper syntax of "copy" plugin

2015-02-25 Thread Nikolay Dimitrov
Hi Clemens, On 02/21/2015 04:41 PM, Clemens Ladisch wrote: > Nikolay Dimitrov wrote: >> On 02/20/2015 01:35 PM, Clemens Ladisch wrote: >>> pcm.copy_to_hw0 { >>> type copy >>> slave.pcm "hw:0" >>> } >>> >>> The device "copy_to_hw0" just copies everything to hw:0. >> >> Well, part of my

Re: [Alsa-user] Proper syntax of "copy" plugin

2015-02-21 Thread Clemens Ladisch
Nikolay Dimitrov wrote: > On 02/20/2015 01:35 PM, Clemens Ladisch wrote: >> pcm.copy_to_hw0 { >> type copy >> slave.pcm "hw:0" >> } >> >> The device "copy_to_hw0" just copies everything to hw:0. > > Well, part of my issue is my understanding of "copying" - it's usually > done from a sourc

Re: [Alsa-user] Proper syntax of "copy" plugin

2015-02-20 Thread Nikolay Dimitrov
Hi Clemens, On 02/20/2015 01:35 PM, Clemens Ladisch wrote: > Nikolay Dimitrov wrote: >> What is the proper way to use the "copy" plugin in the ALSA >> configuration file? > > pcm.copy_to_hw0 { > type copy > slave.pcm "hw:0" > } > > The device "copy_to_hw0" just copies everything to hw:0.

Re: [Alsa-user] Proper syntax of "copy" plugin

2015-02-20 Thread Clemens Ladisch
Nikolay Dimitrov wrote: > What is the proper way to use the "copy" plugin in the ALSA > configuration file? pcm.copy_to_hw0 { type copy slave.pcm "hw:0" } The device "copy_to_hw0" just copies everything to hw:0. This is probably not what you want. > What I'm trying to do is to copy a st

[Alsa-user] Proper syntax of "copy" plugin

2015-02-19 Thread Nikolay Dimitrov
Hi guys, What is the proper way to use the "copy" plugin in the ALSA configuration file? Here's a piece of the official docs: pcm.name { type copy # Copy PCM slave STR # Slave name # or slave { # Slave definition pcm STR # Slave PCM name