diff options
author | Mark Brown | 2011-02-04 15:57:43 +0100 |
---|---|---|
committer | Samuel Ortiz | 2011-03-02 10:57:50 +0100 |
commit | 77bd70e9009eab6dbdef3ee08afe87ab26df8dac (patch) | |
tree | 26de85180fad61c771e3e03fb9c49017ec32be19 /include/linux | |
parent | mfd: Fix DaVinci voice codec device name (diff) | |
download | kernel-qcow2-linux-77bd70e9009eab6dbdef3ee08afe87ab26df8dac.tar.gz kernel-qcow2-linux-77bd70e9009eab6dbdef3ee08afe87ab26df8dac.tar.xz kernel-qcow2-linux-77bd70e9009eab6dbdef3ee08afe87ab26df8dac.zip |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/wm8994/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/core.h b/include/linux/mfd/wm8994/core.h index 3fd36845ca45..ef4f0b6083a3 100644 --- a/include/linux/mfd/wm8994/core.h +++ b/include/linux/mfd/wm8994/core.h @@ -71,6 +71,7 @@ struct wm8994 { u16 irq_masks_cache[WM8994_NUM_IRQ_REGS]; /* Used over suspend/resume */ + bool suspended; u16 ldo_regs[WM8994_NUM_LDO_REGS]; u16 gpio_regs[WM8994_NUM_GPIO_REGS]; |