]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ASoC: Remove needless codec->dapm.bias_level assignment to SND_SOC_BIAS_OFF
authorAxel Lin <axel.lin@gmail.com>
Mon, 3 Oct 2011 12:17:16 +0000 (20:17 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 3 Oct 2011 13:15:22 +0000 (14:15 +0100)
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>
sound/soc/codecs/sn95031.c
sound/soc/codecs/wm5100.c
sound/soc/codecs/wm8996.c

index 5c5a4abfc001acd9113fba098abd3b73e97f2a30..f681e41fc12efa291b61ed9308eb853d85a6c14f 100644 (file)
@@ -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
index f6039890edfd0e1a28bf0c3e2fc0bfba8b739414..46afdf86f59231530b61beaed776e677c85bf546 100644 (file)
@@ -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);
index b98a8f8525d9e292609875f0aeb295270220bd7c..43e46c7f9b0e316222083806398524537721336d 100644 (file)
@@ -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) {