summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-09 13:25:43 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-10 10:37:13 +0100
commit3efab7dcc0f4d0087f73ff975eaa2fddc02ffc69 (patch)
tree501e2991f13b6ca8b7b3c3a27b03ccd4c5196185 /include/sound
parent452a5fd679f8a6f215df71c41487ad4b2c7774db (diff)
downloadblackbird-op-linux-3efab7dcc0f4d0087f73ff975eaa2fddc02ffc69.tar.gz
blackbird-op-linux-3efab7dcc0f4d0087f73ff975eaa2fddc02ffc69.zip
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/sound')
-rw-r--r--include/sound/soc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9f306f0710df..8326fc3db1cf 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;
OpenPOWER on IntegriCloud