diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-28 09:21:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-28 10:58:06 +0200 |
commit | 23d622b14b0209d243f5990cb4d369d4fffaf335 (patch) | |
tree | 236236a0912e93b870f259e55d46b76a5fd04c22 /sound/soc/codecs/adau1701.c | |
parent | ASoC: Fix setting adau1373_dai->master for SND_SOC_DAIFMT_CBS_CFS (diff) | |
download | linux-23d622b14b0209d243f5990cb4d369d4fffaf335.tar.xz linux-23d622b14b0209d243f5990cb4d369d4fffaf335.zip |
ASoC: adau1701: Initialize codec->control_data before using it
Currently codec->control_data is not initialized before calling
process_sigma_firmware(codec->control_data, ADAU1701_FIRMWARE).
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/adau1701.c')
-rw-r--r-- | sound/soc/codecs/adau1701.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c index 2758d5fc60d6..b400afad12e0 100644 --- a/sound/soc/codecs/adau1701.c +++ b/sound/soc/codecs/adau1701.c @@ -458,6 +458,7 @@ static int adau1701_probe(struct snd_soc_codec *codec) int ret; codec->dapm.idle_bias_off = 1; + codec->control_data = to_i2c_client(codec->dev); ret = adau1701_load_firmware(codec); if (ret) |