21 Jun
2013
21 Jun
'13
10:18 a.m.
On 06/21/2013 10:14 AM, 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 at the beginning at a block, that's actually fine. Neither checkpatch or gcc will generate a warning.