[alsa-devel] [topic/asoc][RFC 0/1] ASoC: OMAP: Add support for mono link configuration to McBSP DAI

Mark Brown broonie at sirena.org.uk
Mon Nov 24 14:28:57 CET 2008


On Mon, Nov 24, 2008 at 03:09:23PM +0200, Jarkko Nikula wrote:

> I'm trying to cover also pure mono codecs like bluetooth audio with McBSP DAI
> driver. Protocol part is trivial like patch here but interfacing with machine
> driver is somewhat question mark.

>  struct snd_soc_dai omap_mcbsp_dai[] = {

> +	OMAP_MCBSP_DAI_BUILDER(0, 2, 2),
> +	OMAP_MCBSP_DAI_BUILDER(1, 2, 2),

...

> +struct snd_soc_dai omap_mcbsp_dai_mono[] = {
> +	OMAP_MCBSP_DAI_BUILDER(0, 1, 1),
> +	OMAP_MCBSP_DAI_BUILDER(1, 1, 1),

Is it not possible to have the DAI switch between mono and stereo at
runtime rather than having a DAI for each?  That's the normal approach.
The core should constrain things based on the capabilities of the
connected device.


More information about the Alsa-devel mailing list