Re: [alsa-devel] [PATCH] ASoC: fsl-sai: convert to use regmap API forFreeacale SAI

From: Fabio Estevam
Date: Thu Jan 23 2014 - 05:11:09 EST


On Thu, Jan 23, 2014 at 5:48 AM, Xiubo Li <Li.Xiubo@xxxxxxxxxxxxx> wrote:

> static int fsl_sai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
> int clk_id, unsigned int freq, int dir)
> {
> - struct fsl_sai *sai = snd_soc_dai_get_drvdata(cpu_dai);
> int ret;
>
> if (dir == SND_SOC_CLOCK_IN)
> return 0;
>
> - ret = clk_prepare_enable(sai->clk);
> - if (ret)
> - return ret;

The clock related change seems unrelated to the usage of regmap, right?

> static int fsl_sai_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
> {
> - struct fsl_sai *sai = snd_soc_dai_get_drvdata(cpu_dai);
> int ret;
>
> - ret = clk_prepare_enable(sai->clk);
> - if (ret)
> - return ret;

Same here.

Regards,

Fabio Estevam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/