提交 43419b80 编写于 作者: A Axel Lin 提交者: Mark Brown

ASoC: Remove needless codec->dapm.bias_level assignment to SND_SOC_BIAS_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: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 ca7aceef
...@@ -826,7 +826,6 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec) ...@@ -826,7 +826,6 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec)
{ {
pr_debug("codec_probe called\n"); pr_debug("codec_probe called\n");
codec->dapm.bias_level = SND_SOC_BIAS_OFF;
codec->dapm.idle_bias_off = 1; codec->dapm.idle_bias_off = 1;
/* PCM interface config /* PCM interface config
......
...@@ -2285,8 +2285,6 @@ static int wm5100_probe(struct snd_soc_codec *codec) ...@@ -2285,8 +2285,6 @@ static int wm5100_probe(struct snd_soc_codec *codec)
wm5100->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); ret = snd_soc_codec_set_cache_io(codec, 16, 16, SND_SOC_I2C);
if (ret != 0) { if (ret != 0) {
dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
......
...@@ -2706,7 +2706,6 @@ static int wm8996_probe(struct snd_soc_codec *codec) ...@@ -2706,7 +2706,6 @@ static int wm8996_probe(struct snd_soc_codec *codec)
init_completion(&wm8996->fll_lock); init_completion(&wm8996->fll_lock);
dapm->idle_bias_off = true; 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); ret = snd_soc_codec_set_cache_io(codec, 16, 16, SND_SOC_I2C);
if (ret != 0) { if (ret != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册