This compilation warning issue was fixed. Patch submitted by Mark. http://mailman.alsa-project.org/pipermail/alsa-devel/2012-June/052425.html
Please use the latest source repo.
Thanks Swami
-----Original Message----- From: Sachin Kamat [mailto:sachin.kamat@linaro.org] Sent: Wednesday, June 20, 2012 11:38 AM To: alsa-devel@alsa-project.org Cc: broonie@opensource.wolfsonmicro.com; Reddy, M.R. Swami; sachin.kamat@linaro.org; patches@linaro.org Subject: [PATCH 1/1] ASoC: lm49453: Fix compilation warning
Fixes the following build warning: sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’: sound/soc/codecs/lm49453.c:1510:24: warning: passing argument 3 of ‘snd_soc_register_codec’ discards ‘const’ qualifier from pointer target type [enabled by default] include/sound/soc.h:333:5: note: expected ‘struct snd_soc_dai_driver *’ but argument is of type ‘const struct snd_soc_dai_driver *’
The struct snd_soc_dai_driver lm49453_dai[] has been made non-const, in line with other snd_soc_dai_driver structure variables in other codec files.
Signed-off-by: Sachin Kamat sachin.kamat@linaro.org --- sound/soc/codecs/lm49453.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index c1bc945..99b0a9d 100644 --- a/sound/soc/codecs/lm49453.c +++ b/sound/soc/codecs/lm49453.c @@ -1357,7 +1357,7 @@ static struct snd_soc_dai_ops lm49453_lineout_dai_ops = { };
/* LM49453 dai structure. */ -static const struct snd_soc_dai_driver lm49453_dai[] = { +static struct snd_soc_dai_driver lm49453_dai[] = { { .name = "LM49453 Headset", .playback = { -- 1.7.4.1