提交 c6d5cca0 编写于 作者: J Jarkko Nikula 提交者: Mark Brown

ASoC: Remove needless codec->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: NJarkko Nikula <jhnikula@gmail.com>
Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 12280fae
...@@ -642,7 +642,6 @@ static int ak4671_probe(struct snd_soc_codec *codec) ...@@ -642,7 +642,6 @@ static int ak4671_probe(struct snd_soc_codec *codec)
int ret; int ret;
codec->hw_write = (hw_write_t)i2c_master_send; 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); ret = snd_soc_codec_set_cache_io(codec, 8, 8, ak4671->control_type);
if (ret < 0) { if (ret < 0) {
......
...@@ -560,7 +560,6 @@ static int ssm2602_probe(struct snd_soc_codec *codec) ...@@ -560,7 +560,6 @@ static int ssm2602_probe(struct snd_soc_codec *codec)
pr_info("ssm2602 Audio Codec %s", SSM2602_VERSION); pr_info("ssm2602 Audio Codec %s", SSM2602_VERSION);
codec->bias_level = SND_SOC_BIAS_OFF,
codec->control_data = ssm2602->control_data; codec->control_data = ssm2602->control_data;
ssm2602_reset(codec); ssm2602_reset(codec);
......
...@@ -1385,7 +1385,6 @@ static int dac33_soc_probe(struct snd_soc_codec *codec) ...@@ -1385,7 +1385,6 @@ static int dac33_soc_probe(struct snd_soc_codec *codec)
codec->control_data = dac33->control_data; codec->control_data = dac33->control_data;
codec->hw_write = (hw_write_t) i2c_master_send; codec->hw_write = (hw_write_t) i2c_master_send;
codec->bias_level = SND_SOC_BIAS_OFF;
codec->idle_bias_off = 1; codec->idle_bias_off = 1;
dac33->codec = codec; dac33->codec = codec;
......
...@@ -2245,7 +2245,6 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec) ...@@ -2245,7 +2245,6 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec)
snd_soc_codec_set_drvdata(codec, twl4030); snd_soc_codec_set_drvdata(codec, twl4030);
/* Set the defaults, and power up the codec */ /* Set the defaults, and power up the codec */
twl4030->sysclk = twl4030_codec_get_mclk() / 1000; twl4030->sysclk = twl4030_codec_get_mclk() / 1000;
codec->bias_level = SND_SOC_BIAS_OFF;
codec->idle_bias_off = 1; codec->idle_bias_off = 1;
twl4030_init_chip(codec); twl4030_init_chip(codec);
......
...@@ -569,7 +569,6 @@ static int wm8510_probe(struct snd_soc_codec *codec) ...@@ -569,7 +569,6 @@ static int wm8510_probe(struct snd_soc_codec *codec)
wm8510_reset(codec); wm8510_reset(codec);
/* power on device */ /* power on device */
codec->bias_level = SND_SOC_BIAS_OFF;
wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY); wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
snd_soc_add_controls(codec, wm8510_snd_controls, snd_soc_add_controls(codec, wm8510_snd_controls,
ARRAY_SIZE(wm8510_snd_controls)); ARRAY_SIZE(wm8510_snd_controls));
......
...@@ -488,8 +488,6 @@ static int wm8731_probe(struct snd_soc_codec *codec) ...@@ -488,8 +488,6 @@ static int wm8731_probe(struct snd_soc_codec *codec)
struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec);
int ret = 0, i; int ret = 0, i;
codec->bias_level = SND_SOC_BIAS_OFF,
ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8731->control_type); ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8731->control_type);
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);
......
...@@ -1550,7 +1550,6 @@ static int wm8753_probe(struct snd_soc_codec *codec) ...@@ -1550,7 +1550,6 @@ static int wm8753_probe(struct snd_soc_codec *codec)
struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);
int ret = 0, reg; int ret = 0, reg;
codec->bias_level = SND_SOC_BIAS_OFF;
INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work); INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work);
ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8753->control_type); ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8753->control_type);
......
...@@ -1354,7 +1354,6 @@ static int wm8990_probe(struct snd_soc_codec *codec) ...@@ -1354,7 +1354,6 @@ static int wm8990_probe(struct snd_soc_codec *codec)
wm8990_reset(codec); wm8990_reset(codec);
/* charge output caps */ /* charge output caps */
codec->bias_level = SND_SOC_BIAS_OFF;
wm8990_set_bias_level(codec, SND_SOC_BIAS_STANDBY); wm8990_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
reg = snd_soc_read(codec, WM8990_AUDIO_INTERFACE_4); reg = snd_soc_read(codec, WM8990_AUDIO_INTERFACE_4);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册