[alsa-devel] switching pcm devices dynamically when using dmix
Liam Girdwood
lrg at ti.com
Mon Aug 8 18:35:01 CEST 2011
On Mon, 2011-08-08 at 18:16 +0200, Takashi Iwai wrote:
> 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.
>
Fwiw, the ASoC dynamic PCM code does something a little similar and can
dynamically remap the PCM stream to different backend DAIs (e.g. McBSP,
McPDM, McASP etc) at runtime based on kcontrol mixer settings. This wont
help for routing between cards but could be useful for routing between
different physical DAIs on the same card.
Liam
More information about the Alsa-devel
mailing list