lkml.org 
[lkml]   [2014]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [alsa-devel] [PATCH] ASoC: fsl-sai: convert to use regmap API for Freeacale SAI
From
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


\
 
 \ /
  Last update: 2014-01-23 12:01    [W:0.074 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site