Commit c6d5cca0a0e565101e3ef8d37270f5316d7c5638
Committed by
Mark Brown
1 parent
12280faea6
Exists in
master
and in
7 other branches
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: Jarkko Nikula <jhnikula@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Showing 8 changed files with 0 additions and 9 deletions Side-by-side Diff
sound/soc/codecs/ak4671.c
sound/soc/codecs/ssm2602.c
sound/soc/codecs/tlv320dac33.c
sound/soc/codecs/twl4030.c
... | ... | @@ -2245,7 +2245,6 @@ |
2245 | 2245 | snd_soc_codec_set_drvdata(codec, twl4030); |
2246 | 2246 | /* Set the defaults, and power up the codec */ |
2247 | 2247 | twl4030->sysclk = twl4030_codec_get_mclk() / 1000; |
2248 | - codec->bias_level = SND_SOC_BIAS_OFF; | |
2249 | 2248 | codec->idle_bias_off = 1; |
2250 | 2249 | |
2251 | 2250 | twl4030_init_chip(codec); |
sound/soc/codecs/wm8510.c
sound/soc/codecs/wm8731.c
... | ... | @@ -488,8 +488,6 @@ |
488 | 488 | struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); |
489 | 489 | int ret = 0, i; |
490 | 490 | |
491 | - codec->bias_level = SND_SOC_BIAS_OFF, | |
492 | - | |
493 | 491 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8731->control_type); |
494 | 492 | if (ret < 0) { |
495 | 493 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); |
sound/soc/codecs/wm8753.c
... | ... | @@ -1550,7 +1550,6 @@ |
1550 | 1550 | struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); |
1551 | 1551 | int ret = 0, reg; |
1552 | 1552 | |
1553 | - codec->bias_level = SND_SOC_BIAS_OFF; | |
1554 | 1553 | INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work); |
1555 | 1554 | |
1556 | 1555 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8753->control_type); |
sound/soc/codecs/wm8990.c