23 Jan
2014
23 Jan
'14
11:11 a.m.
On Thu, Jan 23, 2014 at 5:48 AM, Xiubo Li Li.Xiubo@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