Commit 0eef4ed5 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown

ASoC: sn95031: Cleanup bias level transitions

Since the ASoC core now takes care of setting the bias level to
SND_SOC_BIAS_OFF when removing the CODEC there is no need to do it manually
anymore.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0c239fa6
...@@ -870,17 +870,8 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec) ...@@ -870,17 +870,8 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec)
return 0; return 0;
} }
static int sn95031_codec_remove(struct snd_soc_codec *codec)
{
pr_debug("codec_remove called\n");
sn95031_set_vaud_bias(codec, SND_SOC_BIAS_OFF);
return 0;
}
static struct snd_soc_codec_driver sn95031_codec = { static struct snd_soc_codec_driver sn95031_codec = {
.probe = sn95031_codec_probe, .probe = sn95031_codec_probe,
.remove = sn95031_codec_remove,
.set_bias_level = sn95031_set_vaud_bias, .set_bias_level = sn95031_set_vaud_bias,
.idle_bias_off = true, .idle_bias_off = true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment