diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-09-04 21:44:12 +0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-04 23:10:26 +0400 |
commit | 85362efb80070bed890602483f71cd103be303c2 (patch) | |
tree | 35d74d717707f9ca41161c190c144c848972cc85 /sound/soc/codecs/88pm860x-codec.c | |
parent | 0f0cc5a775ebe88d9be12489874bd2799b42e242 (diff) | |
download | linux-85362efb80070bed890602483f71cd103be303c2.tar.xz |
ASoC: ssm2602: Cleanup manual bias level transitions
Set the CODEC driver's suspend_bias_off flag rather than manually going to
SND_SOC_BIAS_OFF in suspend and SND_SOC_BIAS_STANDBY in resume. This makes
the code a bit shorter and cleaner. While we are at it also remove the
regcache_cache_only() calls from suspend/resume as there shouldn't be any IO
between suspend and resume.
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>
Diffstat (limited to 'sound/soc/codecs/88pm860x-codec.c')
0 files changed, 0 insertions, 0 deletions