diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2016-09-26 16:29:21 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-26 19:39:50 +0300 |
commit | bb0c35fcaf8f2ad3383dd43ca8abf5203cd06cc3 (patch) | |
tree | 0e97ce1ffbbfe4f9cb0fbdd5b53d63acb552cc2e /sound/soc/codecs/da7219.h | |
parent | a7f16ea90ecffde4d4915eb7c81b11428e636920 (diff) | |
download | linux-bb0c35fcaf8f2ad3383dd43ca8abf5203cd06cc3.tar.xz |
ASoC: da7219: Disable AAD if codec is not a wake-up source
Currently if AAD is enabled in the device, during system suspend
the feature remains, regardless of whether the codec is a wake-up
source or not. This means some additional power is being used
which is unnecessary, and can causes issues with some platforms'
IRQ handlers where state changes during system suspend aren't
captured.
This patch updates the driver to disable AAD during suspend, if
we're not a wake-up source, and then re-enables this on resume.
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.h')
-rw-r--r-- | sound/soc/codecs/da7219.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219.h b/sound/soc/codecs/da7219.h index f1b3ad835270..66d3bad86739 100644 --- a/sound/soc/codecs/da7219.h +++ b/sound/soc/codecs/da7219.h @@ -803,6 +803,7 @@ struct da7219_priv { struct da7219_aad_priv *aad; struct da7219_pdata *pdata; + bool wakeup_source; struct regulator_bulk_data supplies[DA7219_NUM_SUPPLIES]; struct regmap *regmap; struct mutex lock; |