[alsa-devel] ASoC for TI OMAP - Multiformat ASoC DAI link driver?

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Apr 2 13:48:20 CEST 2008

On Wed, Apr 02, 2008 at 01:45:38PM +0300, Jarkko Nikula wrote:

> Currently in ASoC v1 we have one DAI driver per one format? E.g.
> separate drivers for I2S, AC97, etc and type field in cpu_dai
> structure is not a bit field or at least not used such way in
> soc-core.c and DAI link drivers.

Yes, though it's mostly just used to special case AC97 and for display
purposes so you may find that your use case already works if you fill in
something non-AC97.  I've not looked closely or made any effort to test
this, though.

> I looked shortly asoc-v2-dev branch and now this type field is gone.
> Does it mean that there you can have DAI link driver which supports
> multiple formats in set_fmt callback?

I don't know if anyone has ever actually done that but there should be
nothing in the core which has a problem with doing it - if there is we
should fix it up since this is a perfectly reasonable use case and
affects a number of other modern processors too.

More information about the Alsa-devel mailing list