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

2014-01-23 Thread Fabio Estevam
On Thu, Jan 23, 2014 at 8:32 AM, li.xi...@freescale.com wrote: > 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_regm

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

2014-01-23 Thread li.xi...@freescale.com
> > 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;

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

2014-01-23 Thread Fabio Estevam
On Thu, Jan 23, 2014 at 5:48 AM, Xiubo Li 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_CLO