Geert Uytterhoeven 890861aa85
ASoC: rt5514: Fix uninitialized calibration value
With gcc-4.1.2, if CONFIG_SND_SOC_RT5514_SPI is not set:

    sound/soc/codecs/rt5514.c: In function ‘rt5514_dsp_voice_wake_up_put’:
    sound/soc/codecs/rt5514.c:363: warning: ‘buf[0]’ is used uninitialized in this function
    sound/soc/codecs/rt5514.c:363: warning: ‘buf[1]’ is used uninitialized in this function
    sound/soc/codecs/rt5514.c:363: warning: ‘buf[2]’ is used uninitialized in this function
    sound/soc/codecs/rt5514.c:363: warning: ‘buf[3]’ is used uninitialized in this function

Fix this by initializing the buffer with zeroes, to avoid random bits
being written to the calibration register later.

Fixes: fc9cab05837639ce ("ASoC: rt5514: The DSP clock can be calibrated by the other clock source")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-03-01 19:31:50 +00:00
..
2015-11-06 11:04:07 -08:00
2015-10-05 17:42:49 +01:00
2016-11-09 13:50:14 +00:00
2015-07-07 13:35:13 +01:00
2017-06-13 19:30:53 +01:00
2014-08-16 17:17:13 -05:00
2016-08-08 11:55:20 +01:00
2016-05-30 16:15:55 +01:00
2016-04-28 18:16:04 +01:00
2015-03-11 19:16:07 +00:00
2016-01-27 20:23:20 +00:00
2017-05-14 19:14:10 +09:00
2017-07-18 14:46:20 +01:00
2017-10-21 10:59:02 +01:00
2015-12-19 12:02:18 +00:00
2016-10-24 18:03:14 +01:00
2014-07-02 20:49:25 +01:00
2017-04-05 18:21:01 +01:00
2017-09-20 12:45:19 +01:00
2016-06-26 12:28:13 +01:00
2015-04-08 19:25:40 +01:00
2017-04-05 18:22:27 +01:00