diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-01-30 14:19:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-01 19:31:50 +0000 |
commit | 890861aa85043cc9d99a01e1bd26883722e95243 (patch) | |
tree | f07d86e4e0d9d7e2594336277fec5a92a0612931 /sound/soc/codecs/rt5665.c | |
parent | 29838a5c1e77ed93d41fb9837390e243b9b73518 (diff) |
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>
Diffstat (limited to 'sound/soc/codecs/rt5665.c')
0 files changed, 0 insertions, 0 deletions