[alsa-devel] ASoC: How to mix multi input ?

Mark Brown broonie at kernel.org
Thu May 21 13:05:19 CEST 2015


On Thu, May 21, 2015 at 12:20:06AM +0000, Kuninori Morimoto wrote:

> > > codec will be started if one of A/B/C are started,
> > > and it will be stopped if all of A/B/C are stopped.

> > If you connect multiple front ends to one back end this should work
> > (with DAPM routes and so on).  If it doesn't work then that's something
> > that should work.

> I considered about DPCM, but *maybe* this is not goot match for us.
> If my understanding is correct, and if I used DPCM for this,
> all of sound A/B/C are start/stop:ed in same time ?

> ex)
> 	start sound => start A/B/C and codec
> 	stop  sound => stop  A/B/C and codec

> I guess it works if it has this connection

> 	data -> [A] -> [B] -> [C] -> codec

> We would like to do is like this
> 
> 	                +-+
> 	dataA -> [A] -> |M|
> 	dataB -> [B] -> |I| -> codec
> 	dataC -> [C] -> |X|
> 	                +-+

> 	init          => working:
> 	start sound A => working: codec + A
> 	start sound B => working: codec + A/B (mixed)
> 	stop  sound A => working: codec + B
> 	start sound C => working: codec + B/C (mixed)
> 	stop  sound B => working: codec + C
> 	stop  sound C => working:

> I guess current DPCM doesn't support this ?

What you're describing is what I'd expect to happen - I'd say if that's
not working it's a bug and we should fix it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150521/8c7fdf4c/attachment-0001.sig>


More information about the Alsa-devel mailing list