From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 2/3] ASoC: fsl: imx-wm8962: Grant hw_params/free() permission to control FLL Date: Fri, 6 Dec 2013 14:34:33 +0000 Message-ID: <20131206143433.GH29268@sirena.org.uk> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5992461052259991398==" Return-path: Received: from cassiel.sirena.org.uk (cassiel.sirena.org.uk [80.68.93.111]) by alsa0.perex.cz (Postfix) with ESMTP id 5A9D92655B2 for ; Fri, 6 Dec 2013 15:34:38 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Nicolin Chen Cc: tiwai@suse.de, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org --===============5992461052259991398== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yuedfix5hmtMJRO4" Content-Disposition: inline --yuedfix5hmtMJRO4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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? --yuedfix5hmtMJRO4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJSoeB2AAoJELSic+t+oim9WLQP/39fJ6OQuo085aTYMfcFvCT8 l2hRSP28s9lCYd+8OCPIOJgPkxu6NeSpdlSWrn+nl9g2/wbI7YixRsI9uAVVq7fy 7NtSwvpgekUmvzWEFWS7EWSUOeiPIn1bZ8E5Rjc0NhGvLlkX2Acch7jLxek9xTsE Pc9hx9hPiz2ViXh/iVqC5H7w7R7WyBqyeDnlGLVagdUdc2Oa5xvMQuwJaM9LTLTw g6w1VBd3P9KLv8/jirYNjHScv48ZKnQLbkawEMb9bpLt7zL8lYNhGr7uxokf2A5j hiVsRMRBIknub8G8jK5FD8csIEccminYQhvFF5PaMHZ7IauZmDH0fEVw7zVoViN8 CeVQhi4VUFzgbHqtChHS4FBv5VDyFsZ9MbizHQWtKrf3XRm5CNwLsCTBNLqNse2v 0xX/NcEn5vgEboQNF6eaBP61JzQwVTTjsRCRT4HXLz200dS7+bjBuS3jDvTZQsm9 8bNANqkgn6rOZGoOHWwB1HK2Hmv1xO/rnWSEUTNxI3MTzijMr6TKXnPDtoCJw/G2 CHlc7pKxWNz4WBa5IsJi5pWZfSYixYBCkx77II5SRAopRuEvjXFb6K5rvBPnCCiV USvuMvatXPAPFrBRg0KJZbZ59KmSmnOqmvpJvxu1Q4dJjpJPRl4eEBQ+4zIMLRNw ReK0ASUxhh8yLB4MWhXj =ILGZ -----END PGP SIGNATURE----- --yuedfix5hmtMJRO4-- --===============5992461052259991398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============5992461052259991398==--