summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/adau1781.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-09-04 21:44:09 +0400
committerMark Brown <broonie@kernel.org>2014-09-04 23:10:25 +0400
commit0e0f9b960a011a9e3815004f37cc475229170dfd (patch)
tree6b3a83cc7ad07956b23eb84ef0edbb6797ad2268 /sound/soc/codecs/adau1781.c
parentd7858bd647cda68bf832997a280a2f44aec01f1b (diff)
downloadlinux-0e0f9b960a011a9e3815004f37cc475229170dfd.tar.xz
ASoC: adau17x1: 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. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau1781.c')
-rw-r--r--sound/soc/codecs/adau1781.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/adau1781.c b/sound/soc/codecs/adau1781.c
index 045a61413840..e9fc00fb13dd 100644
--- a/sound/soc/codecs/adau1781.c
+++ b/sound/soc/codecs/adau1781.c
@@ -446,9 +446,9 @@ static int adau1781_codec_probe(struct snd_soc_codec *codec)
static const struct snd_soc_codec_driver adau1781_codec_driver = {
.probe = adau1781_codec_probe,
- .suspend = adau17x1_suspend,
.resume = adau17x1_resume,
.set_bias_level = adau1781_set_bias_level,
+ .suspend_bias_off = true,
.controls = adau1781_controls,
.num_controls = ARRAY_SIZE(adau1781_controls),