Skip to content

Commit

Permalink
ASoC: tlv320aic31xx: Remove snd_soc_codec_set_cache_io() call
Browse files Browse the repository at this point in the history
Remove snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP) call
and codec->control_data = aic31xx->regmap assignment since that
already done by core.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jyri Sarha authored and Mark Brown committed Mar 13, 2014
1 parent a2d5767 commit bc236fa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sound/soc/codecs/tlv320aic31xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,18 +1049,9 @@ static int aic31xx_codec_probe(struct snd_soc_codec *codec)
dev_dbg(aic31xx->dev, "## %s\n", __func__);

aic31xx = snd_soc_codec_get_drvdata(codec);
codec->control_data = aic31xx->regmap;

aic31xx->codec = codec;

ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP);

if (ret != 0) {
dev_err(codec->dev, "snd_soc_codec_set_cache_io failed %d\n",
ret);
return ret;
}

for (i = 0; i < ARRAY_SIZE(aic31xx->supplies); i++) {
aic31xx->disable_nb[i].nb.notifier_call =
aic31xx_regulator_event;
Expand Down

0 comments on commit bc236fa

Please sign in to comment.