[alsa-devel] switching pcm devices dynamically when using dmix

Takashi Iwai tiwai at suse.de
Mon Aug 8 18:16:06 CEST 2011


At Mon, 8 Aug 2011 09:08:49 -0700,
Baek Chang wrote:
> 
> Would it be possible to implement this feature in another plugin?  For
> example, some plugin called "switch", that would take a parameter for device
> or card name/number that would close the current device and open the new
> requested device?  Would this be worth investigating?

The question is whether it allows the dynamic switch of the running
PCM stream.  If yes, it'd be tough to implement, I suppose.
OTOH, if it handles only the switch for the next open, it'd be just to
change the configuration, so it sounds feasible.


Takashi


> 
> Thanks!
> 
> On Mon, Aug 8, 2011 at 5:40 AM, Takashi Iwai <tiwai at suse.de> wrote:
> 
> > At Wed, 3 Aug 2011 15:13:09 -0700,
> > Baek Chang wrote:
> > >
> > > Hi,
> > >
> > > I'm wondering if the following is possible.
> > >
> > > If I have my asound.conf configured in such a way that
> > >
> > > pcm.media {
> > >
> > > }
> > >
> > > route to hw:0,0 throuh dmix.
> > >
> > > can I dynamically change the device to hw:0,1 or hw:1,0 if necessary?
> >
> > Not possible with the current implementation.
> > For such a purpose, better to use PulseAudio.
> >
> >
> > Takashi
> >
> >
> 
> 
> -- 
> -baeksanchang
> [2  <text/html; ISO-8859-1 (quoted-printable)>]
> 


More information about the Alsa-devel mailing list