[alsa-devel] [PATCH] ASoC: fsl-sai: convert to use regmap API for Freeacale SAI
Fabio Estevam
festevam at gmail.com
Thu Jan 23 11:11:02 CET 2014
On Thu, Jan 23, 2014 at 5:48 AM, Xiubo Li <Li.Xiubo at freescale.com> 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
More information about the Alsa-devel
mailing list