Skip to contentSkip to conversation

ASoC: rt286: Drop unnecessary dapm bias_level initialization

PATCH Applied Lars-Peter Clausen 3 participants 5 messages Mar 16, 2015 – Mar 17, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: rt286: Drop unnecessary dapm bias_level initialization

The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being called, there is no need to initialize it explicitly.

---
 sound/soc/codecs/rt286.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/rt286.c +0 -1
index fb3f5d3..7bbe714 100644
@@ -1048,7 +1048,6 @@ static int rt286_probe(struct snd_soc_codec *codec)
 	struct rt286_priv *rt286 = snd_soc_codec_get_drvdata(codec);
 
 	rt286->codec = codec;
-	codec->dapm.bias_level = SND_SOC_BIAS_OFF;
 
 	if (rt286->i2c->irq) {
 		regmap_update_bits(rt286->regmap,
Signature · 1 line
1.8.0
#1 lore raw

PATCH 2/2 ASoC: wm2200: Drop unnecessary dapm bias_level initialization

The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being called, there is no need to initialize it explicitly.

---
 sound/soc/codecs/wm2200.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/wm2200.c +0 -1
index b48694a..5a9da28 100644
@@ -1554,7 +1554,6 @@ static int wm2200_probe(struct snd_soc_codec *codec)
 	int ret;
 
 	wm2200->codec = codec;
-	codec->dapm.bias_level = SND_SOC_BIAS_OFF;
 
 	ret = snd_soc_add_codec_controls(codec, wm_adsp1_fw_controls, 2);
 	if (ret != 0)
Signature · 1 line
1.8.0
maintainer Applied
#3 lore raw

Re: [PATCH 2/2] ASoC: wm2200: Drop unnecessary dapm bias_level initialization

In reply to Lars-Peter Clausen
Quoted 2 lines · Lars-Peter Clausen

The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being called, there is no need to initialize it explicitly.

Applied, thanks.

maintainer Applied
#4 lore raw
In reply to Lars-Peter Clausen
Quoted 2 lines · Lars-Peter Clausen

The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being called, there is no need to initialize it explicitly.

Applied, thanks.