summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-haswell-ipc.h
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2014-10-29 18:40:42 +0100
committerMark Brown <broonie@kernel.org>2014-10-29 21:50:42 +0100
commitaed3c7b77c85ed7060f1f56bfa909d2a86ab2a20 (patch)
tree139704f1bedd9a92d432f9071d23e8ecb0c3a992 /sound/soc/intel/sst-haswell-ipc.h
parentASoC: Intel: Add PM support to the HSW/BDW DSP core. (diff)
downloadlinux-aed3c7b77c85ed7060f1f56bfa909d2a86ab2a20.tar.xz
linux-aed3c7b77c85ed7060f1f56bfa909d2a86ab2a20.zip
ASoC: Intel: Add PM support to HSW/BDW IPC driver
Add PM and RTD3 support to the HSW/BDW IPC driver. This patch saves and restores the DSP context, loads and unloads FW and drops any pending IPC messages after suspend. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-haswell-ipc.h')
-rw-r--r--sound/soc/intel/sst-haswell-ipc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.h b/sound/soc/intel/sst-haswell-ipc.h
index fe6e63f6524a..afd0ae10e2db 100644
--- a/sound/soc/intel/sst-haswell-ipc.h
+++ b/sound/soc/intel/sst-haswell-ipc.h
@@ -23,6 +23,7 @@
#define SST_HSW_NO_CHANNELS 2
#define SST_HSW_MAX_DX_REGIONS 14
+#define SST_HSW_DX_CONTEXT_SIZE (640 * 1024)
#define SST_HSW_FW_LOG_CONFIG_DWORDS 12
#define SST_HSW_GLOBAL_LOG 15
@@ -492,4 +493,10 @@ struct sst_module_runtime *sst_hsw_runtime_module_create(struct sst_hsw *hsw,
int mod_id, int offset);
void sst_hsw_runtime_module_free(struct sst_module_runtime *runtime);
+/* PM */
+int sst_hsw_dsp_runtime_resume(struct sst_hsw *hsw);
+int sst_hsw_dsp_runtime_suspend(struct sst_hsw *hsw);
+int sst_hsw_dsp_load(struct sst_hsw *hsw);
+int sst_hsw_dsp_runtime_sleep(struct sst_hsw *hsw);
+
#endif