]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Don't suspend WM8994 if the CODEC is not suspended
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 4 Feb 2011 14:57:43 +0000 (14:57 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 2 Mar 2011 09:57:50 +0000 (10:57 +0100)
commit0f9f5dffc7128b0d9a6a0580782af8a7bb8fc52c
tree26de85180fad61c771e3e03fb9c49017ec32be19
parentc57385f3aba4253caa65df5e403041c6e3fefbc0
mfd: Don't suspend WM8994 if the CODEC is not suspended

ASoC supports keeping the audio subsysetm active over suspend in order
to support use cases such as audio passthrough from a cellular modem
with the main CPU suspended. Ensure that we don't power down the CODEC
when this is happening by checking to see if VMID is up and skipping
suspend and resume when it is. If the CODEC has suspended then it'll
turn VMID off before the core suspend() gets called.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8994-core.c
include/linux/mfd/wm8994/core.h