21 Jun
2013
21 Jun
'13
10:17 a.m.
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