From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: Re: [PATCH 1/3] ASoC: codecs: adau1701: allow configuration of PLL mode pins Date: Fri, 21 Jun 2013 10:17:47 +0200 Message-ID: <51C40C2B.6090502@gmail.com> References: <1371749397-32238-1-git-send-email-zonque@gmail.com> <1371749397-32238-2-git-send-email-zonque@gmail.com> <51C3DAAF.9060007@st.com> <51C3ED78.8010703@gmail.com> <51C40B7E.1090508@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com [209.85.215.169]) by alsa0.perex.cz (Postfix) with ESMTP id F03332654DD for ; Fri, 21 Jun 2013 10:17:15 +0200 (CEST) Received: by mail-ea0-f169.google.com with SMTP id h15so4570253eak.28 for ; Fri, 21 Jun 2013 01:17:15 -0700 (PDT) In-Reply-To: <51C40B7E.1090508@st.com> 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: Rajeev kumar Cc: "alsa-devel@alsa-project.org" , "broonie@kernel.org" , "lars@metafoo.de" List-Id: alsa-devel@alsa-project.org On 21.06.2013 10:14, Rajeev kumar wrote: > On 6/21/2013 11:36 AM, Daniel Mack wrote: >>>>>> struct snd_soc_codec *codec = dai->codec; >>>>>> + struct adau1701 *adau1701 = snd_soc_codec_get_drvdata(codec); >>>>>> snd_pcm_format_t format; >>>>>> unsigned int val; >>>>>> >>>>>> + if (adau1701->sysclk) { >>>>>> + unsigned int clkdiv = adau1701->sysclk / params_rate(params); >>>> >>>> It will give warning. >> Please elaborate. > > you are declaring something (unsigned int clkdiv) in between code. It's not in between code, it's at the beginning of a new block ('{'). That's totally fine and done everywhere else in the kernel. Daniel