]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ASoC: Remove needless codec->bias_level assignment to SND_SOC_BIAS_OFF
authorJarkko Nikula <jhnikula@gmail.com>
Tue, 14 Sep 2010 12:24:38 +0000 (15:24 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 15 Sep 2010 11:03:34 +0000 (12:03 +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: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ak4671.c
sound/soc/codecs/ssm2602.c
sound/soc/codecs/tlv320dac33.c
sound/soc/codecs/twl4030.c
sound/soc/codecs/wm8510.c
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8753.c
sound/soc/codecs/wm8990.c

index 239f0562003ca43a1633338ae59bd14a4531ab2d..24f5f49bb9d2cf9f5a84b205643b74ddfca47126 100644 (file)
@@ -642,7 +642,6 @@ static int ak4671_probe(struct snd_soc_codec *codec)
        int ret;
 
        codec->hw_write = (hw_write_t)i2c_master_send;
-       codec->bias_level = SND_SOC_BIAS_OFF;
 
        ret = snd_soc_codec_set_cache_io(codec, 8, 8, ak4671->control_type);
        if (ret < 0) {
index 67d8c044ca04596acf55311b5db548b4d45adb3d..6f38d619bf8ab207ab35252f16c4a7f4db3d41fe 100644 (file)
@@ -560,7 +560,6 @@ static int ssm2602_probe(struct snd_soc_codec *codec)
 
        pr_info("ssm2602 Audio Codec %s", SSM2602_VERSION);
 
-       codec->bias_level = SND_SOC_BIAS_OFF,
        codec->control_data = ssm2602->control_data;
 
        ssm2602_reset(codec);
index a3c5b521da6a5740a9bf27cf34da2a43668ee4f9..bf6d01f4a45aa1ac86958c7f652442858a03cd81 100644 (file)
@@ -1385,7 +1385,6 @@ static int dac33_soc_probe(struct snd_soc_codec *codec)
 
        codec->control_data = dac33->control_data;
        codec->hw_write = (hw_write_t) i2c_master_send;
-       codec->bias_level = SND_SOC_BIAS_OFF;
        codec->idle_bias_off = 1;
        dac33->codec = codec;
 
index c7ee1a4c9d99f0643318333bf48831a139ef87fc..cbebec6ba1ba42fda499b018b9f6a1a6938eb1c6 100644 (file)
@@ -2245,7 +2245,6 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec)
        snd_soc_codec_set_drvdata(codec, twl4030);
        /* Set the defaults, and power up the codec */
        twl4030->sysclk = twl4030_codec_get_mclk() / 1000;
-       codec->bias_level = SND_SOC_BIAS_OFF;
        codec->idle_bias_off = 1;
 
        twl4030_init_chip(codec);
index d00da2001a12cbec3abf2039bb83872b710a9a1a..02ecf54de0205213f07a8c75be45bbbc437bf90a 100644 (file)
@@ -569,7 +569,6 @@ static int wm8510_probe(struct snd_soc_codec *codec)
        wm8510_reset(codec);
 
        /* power on device */
-       codec->bias_level = SND_SOC_BIAS_OFF;
        wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
        snd_soc_add_controls(codec, wm8510_snd_controls,
                                ARRAY_SIZE(wm8510_snd_controls));
index 28275014c73d1bd65167972c1684adf44a261d7e..bdce125bbd81968c27daf20b828b092c66a8ac98 100644 (file)
@@ -488,8 +488,6 @@ static int wm8731_probe(struct snd_soc_codec *codec)
        struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec);
        int ret = 0, i;
 
-       codec->bias_level = SND_SOC_BIAS_OFF,
-
        ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8731->control_type);
        if (ret < 0) {
                dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
index 0b0e3b3ebbbb81ab4fb8f8262d181e6b92a43d85..64ea06610038764d981ec877c52e9c3903726951 100644 (file)
@@ -1550,7 +1550,6 @@ static int wm8753_probe(struct snd_soc_codec *codec)
        struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);
        int ret = 0, reg;
 
-       codec->bias_level = SND_SOC_BIAS_OFF;
        INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work);
 
        ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8753->control_type);
index 0ffecbd1e33bc25db7f9bd583f9c4f9d0ed3231f..264828e4e67c8be0d7e43a8ffd6d2f4d96498d74 100644 (file)
@@ -1354,7 +1354,6 @@ static int wm8990_probe(struct snd_soc_codec *codec)
        wm8990_reset(codec);
 
        /* charge output caps */
-       codec->bias_level = SND_SOC_BIAS_OFF;
        wm8990_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
        reg = snd_soc_read(codec, WM8990_AUDIO_INTERFACE_4);