Skip to content

Commit

Permalink
ASoC: adau1701: Initialize codec->control_data before using it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 28, 2011
1 parent 458f6f6 commit 23d622b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/adau1701.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23d622b

Please sign in to comment.