Skip to content

Commit

Permalink
ASoC: Remove needless codec->dapm.bias_level assignment to SND_SOC_BI…
Browse files Browse the repository at this point in the history
…AS_OFF

This assignment is done by the snd_soc_register_codec so there is no need
to redo it in probe function of a codec driver.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Oct 3, 2011
1 parent ca7acee commit 43419b8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion sound/soc/codecs/sn95031.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,6 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec)
{
pr_debug("codec_probe called\n");

codec->dapm.bias_level = SND_SOC_BIAS_OFF;
codec->dapm.idle_bias_off = 1;

/* PCM interface config
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/codecs/wm5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -2285,8 +2285,6 @@ static int wm5100_probe(struct snd_soc_codec *codec)

wm5100->codec = codec;

codec->dapm.bias_level = SND_SOC_BIAS_OFF;

ret = snd_soc_codec_set_cache_io(codec, 16, 16, SND_SOC_I2C);
if (ret != 0) {
dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
Expand Down
1 change: 0 additions & 1 deletion sound/soc/codecs/wm8996.c
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,6 @@ static int wm8996_probe(struct snd_soc_codec *codec)
init_completion(&wm8996->fll_lock);

dapm->idle_bias_off = true;
dapm->bias_level = SND_SOC_BIAS_OFF;

ret = snd_soc_codec_set_cache_io(codec, 16, 16, SND_SOC_I2C);
if (ret != 0) {
Expand Down

0 comments on commit 43419b8

Please sign in to comment.