diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-05-09 13:25:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-05-10 10:37:13 +0100 |
commit | 3efab7dcc0f4d0087f73ff975eaa2fddc02ffc69 (patch) | |
tree | 501e2991f13b6ca8b7b3c3a27b03ccd4c5196185 /include | |
parent | 452a5fd679f8a6f215df71c41487ad4b2c7774db (diff) | |
download | op-kernel-dev-3efab7dcc0f4d0087f73ff975eaa2fddc02ffc69.zip op-kernel-dev-3efab7dcc0f4d0087f73ff975eaa2fddc02ffc69.tar.gz |
ASoC: Allow DAI links to be kept active over suspend
As well as allowing DAPM pins to be marked as ignoring suspend allow DAI
links to be similarly marked. This is primarily intended for digital
links between CODECs and non-CPU devices such as basebands in mobile
phones and will suppress all suspend calls for the DAI link. It is
likely that this will need to be revisited if used with devices which
are part of the SoC CPU.
Tested-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 9f306f0..8326fc3 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -505,6 +505,9 @@ struct snd_soc_dai_link { /* codec/machine specific init - e.g. add machine controls */ int (*init)(struct snd_soc_codec *codec); + /* Keep DAI active over suspend */ + unsigned int ignore_suspend:1; + /* Symmetry requirements */ unsigned int symmetric_rates:1; |