[alsa-devel] ASoC - Output widgets

Mark Brown broonie at opensource.wolfsonmicro.com
Sat Feb 23 16:57:59 CET 2008

On Fri, Feb 22, 2008 at 05:39:54PM +0100, Alexandre BOUIN wrote:

> Using ASoC layer, I'd like to perform this example behaviour with my widgets
> : 
>  - 1 output mixer MIXOUT is connected to 2 outputs OUT1 and OUT2
>  - OUT1 and OUT2 can be powered independently
> This seems easy, but atm while one is powered, the other is powered too.

I may be misunderstanding what you're doing here but I suspect that
you need to use snd_soc_dapm_set_endpoint() to mark the outputs that are
not in use as disconnected.  If you do that then then DAPM will not
power up the relevant output path.

You can do this at any point at run time - see sound/soc/pxa/tosa.c for
an example of this.

More information about the Alsa-devel mailing list