[alsa-devel] [PATCH 1/3] ASoC: codecs: adau1701: allow configuration of PLL mode pins
Daniel Mack
zonque at gmail.com
Fri Jun 21 10:17:47 CEST 2013
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
More information about the Alsa-devel
mailing list