Skip to content

Commit

Permalink
ASoC: 88pm860x-codec: Cleanup manual bias level transitions
Browse files Browse the repository at this point in the history
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 either.

The manual transition to SND_SOC_BIAS_STANDBY at the end of CODEC probe()
can also be removed as the core will automatically do this after the CODEC
has been probed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Sep 6, 2014
1 parent 85362ef commit 3d2c42d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/codecs/88pm860x-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,8 +1337,6 @@ static int pm860x_probe(struct snd_soc_codec *codec)
}
}

pm860x_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

return 0;

out:
Expand All @@ -1354,7 +1352,6 @@ static int pm860x_remove(struct snd_soc_codec *codec)

for (i = 3; i >= 0; i--)
free_irq(pm860x->irq[i], pm860x);
pm860x_set_bias_level(codec, SND_SOC_BIAS_OFF);
return 0;
}

Expand Down

0 comments on commit 3d2c42d

Please sign in to comment.