[alsa-devel] [PATCH V2] ASoC - Add support for upto 16 channels on OMAP MCBSP

Jarkko Nikula jhnikula at gmail.com
Mon Nov 9 09:14:11 CET 2009

On Mon, 9 Nov 2009 09:29:01 +0200
Peter Ujfalusi <peter.ujfalusi at nokia.com> wrote:

> I think if I set the mcbsp_data->in_freq to be:
> params_rate(params) * sample_bits * channels, and configure the mcbsp_data-
> >clk_div to be 1, might work in this case.
I think it's cleanest to calculate frame size conditionally based on
SND_SOC_DAIFMT_CBS_CFS or testing !in_freq and let the frame
size to be wlen * channels in other cases.

If it's based on !in_freq, then the in_freq must be set in
omap_mcbsp_dai_set_dai_sysclk only for OMAP_MCBSP_SYSCLK_xxx cases
since this function is called also when setting CLKR and FSR sources
(no need to pass frequency).


More information about the Alsa-devel mailing list