diff options
author | Daniel Mack <zonque@gmail.com> | 2013-10-01 16:50:02 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-03 17:22:40 +0400 |
commit | a85e419edee73ec458354388e1ba9b8b58bdcbba (patch) | |
tree | c5e74070c0195ddc247da92e506eabb89a601120 /sound/soc/davinci/davinci-mcasp.h | |
parent | bcf25567ecec6cb0a8078cbf68969baed047fdf4 (diff) | |
download | linux-a85e419edee73ec458354388e1ba9b8b58bdcbba.tar.xz |
ASoC: davinci-mcasp: add support for suspend and resume
When the system returns from suspend, it looses its configuration. Most
of it is restored by running a normal audio stream startup, but the DAI
format is left unset as that's configured on the audio device creation.
Hence, it suffices here to care for the registers which are touched by
davinci_mcasp_set_dai_fmt() and restore them when the system is resumed.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.h')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.h b/sound/soc/davinci/davinci-mcasp.h index a9ac0c11da71..a2e27e1c32f3 100644 --- a/sound/soc/davinci/davinci-mcasp.h +++ b/sound/soc/davinci/davinci-mcasp.h @@ -43,6 +43,18 @@ struct davinci_audio_dev { /* McASP FIFO related */ u8 txnumevt; u8 rxnumevt; + +#ifdef CONFIG_PM_SLEEP + struct { + u32 txfmtctl; + u32 rxfmtctl; + u32 txfmt; + u32 rxfmt; + u32 aclkxctl; + u32 aclkrctl; + u32 pdir; + } context; +#endif }; #endif /* DAVINCI_MCASP_H */ |