[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100701143540.GC8742@rakim.wolfsonmicro.main>
Date: Thu, 1 Jul 2010 15:35:40 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Raffaele Recalcati <lamiaposta71@...il.com>
Cc: davinci-linux-open-source@...ux.davincidsp.com,
Raffaele Recalcati <raffaele.recalcati@...cino.it>,
Davide Bonfanti <davide.bonfanti@...cino.it>,
Liam Girdwood <lrg@...mlogic.co.uk>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.de>,
Troy Kisky <troy.kisky@...ndarydevices.com>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] ASoC: DaVinci: Added two clocking possibilities to
McBSP (I2S)
On Wed, Jun 30, 2010 at 03:47:56PM +0200, Raffaele Recalcati wrote:
> +static int davinci_i2s_dai_set_clkdiv(struct snd_soc_dai *cpu_dai,
> + int div_id, int div)
> +{
> + struct davinci_mcbsp_dev *dev = cpu_dai->private_data;
> + int srgr;
> +
> + dev->clk_div = div;
> + return 0;
> +}
As previously mentioned this should check the div_id argument.
> + switch (master) {
> + case SND_SOC_DAIFMT_CBS_CFS:
...
> + case SND_SOC_DAIFMT_CBM_CFS:
...
> + default:
> + /* Clock and frame sync given from external sources */
The two remaining options (_CBM_CFM and _CBS_CFM) are different, your
description matches _CBM_CFM.
> + if (master == SND_SOC_DAIFMT_CBS_CFS ||
> + master == SND_SOC_DAIFMT_CBS_CFM) {
Switch statement again.
> + if (master == SND_SOC_DAIFMT_CBS_CFS ||
> + master == SND_SOC_DAIFMT_CBS_CFM) {
> + rcr |= DAVINCI_MCBSP_RCR_RFRLEN1(0);
> + xcr |= DAVINCI_MCBSP_XCR_XFRLEN1(0);
> + } else {
...and another. Please fix all these.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists