[alsa-devel] How to support multiple audio codecs on a single?board

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Aug 31 22:10:40 CEST 2009

On Mon, Aug 31, 2009 at 01:25:39PM -0400, Pedro I. Sanchez wrote:
> On Mon, 31 Aug 2009 14:16:06 +0100, Mark Brown

> > For now you'll need to write three machine drivers only one of which is
> > permitted to be loaded at once; once the core has this support added
> > you'll then be able to load all three at once and have the three appear
> > as separate sound cards.  If you'd like to contribute the core support
> > that'd be excellent :)

> What if the codecs are different? My board has a playback-only device
> (TAS5709) and a capture-only device (PCM1800). Would it be OK to implement
> a single machine driver with num_dai=2? Or would you suggest to implement
> two different sound cards?

It only depends on what's idiomatic for your system - if your system
makes most sense with them both as part of the same sound card then do
that, if it makes more sense with them split into two cards then that
would be better.  When ASoC supports this properly it should be happy
with either configuration.

More information about the Alsa-devel mailing list