]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: da7219: Disable AAD if codec is not a wake-up source
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 26 Sep 2016 13:29:21 +0000 (14:29 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Sep 2016 16:39:50 +0000 (09:39 -0700)
commit85faa9536fcd69f285ee6ef2ad865c8f925c31b8
tree0e97ce1ffbbfe4f9cb0fbdd5b53d63acb552cc2e
parent513b16c0ef675967b2de35750d1d9bff4c7ecd75
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>
include/sound/da7219.h
sound/soc/codecs/da7219-aad.c
sound/soc/codecs/da7219-aad.h
sound/soc/codecs/da7219.c
sound/soc/codecs/da7219.h