lkml.org 
[lkml]   [2013]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] ASoC: fsl: imx-wm8962: Grant hw_params/free() permission to control FLL
On Fri, Dec 06, 2013 at 05:47:43PM +0800, Nicolin Chen wrote:

> +static int imx_wm8962_enable_fll(struct snd_soc_dai *codec_dai, u32 sample_rate,
> + snd_pcm_format_t sample_format)
> +{
> + struct imx_priv *priv = &card_priv;
> + struct device *dev = &priv->pdev->dev;
> + struct imx_wm8962_data *data = platform_get_drvdata(priv->pdev);
> + u32 freq, ret;
> +
> + if (data->fll_lock)
> + return 0;

Don't we need an actual lock to protect this?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-12-06 16:21    [W:0.073 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site