RE: [alsa-devel] [PATCH] ASoC: fsl-sai: convert to use regmap APIfor Freeacale SAI

From: Li.Xiubo@xxxxxxxxxxxxx
Date: Thu Jan 23 2014 - 05:35:52 EST



> > 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?
>

The clock operations in the driver is only related to the module clock, and has
move to the regmap core and regmap core will to the same clock operations at
proper time, since we are using:

+ sai->regmap = devm_regmap_init_mmio_clk(&pdev->dev,
+ "sai", base, &fsl_sai_regmap_config);


Thanks,

Best Regards,
Xiubo
èº{.nÇ+‰·Ÿ®‰­†+%ŠËlzwm…ébëæìr¸›zX§»®w¥Š{ayºÊÚë,j­¢f£¢·hš‹àz¹®w¥¢¸ ¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾«‘êçzZ+ƒùšŽŠÝj"ú!¶iO•æ¬z·švØ^¶m§ÿðà nÆàþY&—