summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-dsp-priv.h
diff options
context:
space:
mode:
authorLu, Han2015-03-10 03:41:20 +0100
committerMark Brown2015-03-11 13:53:44 +0100
commit9449d39b990d6d3d6386fbb92f3b86c808157b47 (patch)
tree0a79034db8a736aa999bd1bfac86d5faa568b404 /sound/soc/intel/sst-dsp-priv.h
parentMerge branch 'fix/intel' of git://git.kernel.org/pub/scm/linux/kernel/git/bro... (diff)
downloadkernel-qcow2-linux-9449d39b990d6d3d6386fbb92f3b86c808157b47.tar.gz
kernel-qcow2-linux-9449d39b990d6d3d6386fbb92f3b86c808157b47.tar.xz
kernel-qcow2-linux-9449d39b990d6d3d6386fbb92f3b86c808157b47.zip
ASoC: Intel: add function to load firmware image
Add a general method to load firmware image, and apply to base firmware image loading. With the method, the driver will support loading multiple different modules in order to support different features. Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-dsp-priv.h')
-rw-r--r--sound/soc/intel/sst-dsp-priv.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-dsp-priv.h b/sound/soc/intel/sst-dsp-priv.h
index b9da030e312d..396d54510350 100644
--- a/sound/soc/intel/sst-dsp-priv.h
+++ b/sound/soc/intel/sst-dsp-priv.h
@@ -173,6 +173,16 @@ struct sst_module_runtime_context {
};
/*
+ * Audio DSP Module State
+ */
+enum sst_module_state {
+ SST_MODULE_STATE_UNLOADED = 0, /* default state */
+ SST_MODULE_STATE_LOADED,
+ SST_MODULE_STATE_INITIALIZED, /* and inactive */
+ SST_MODULE_STATE_ACTIVE,
+};
+
+/*
* Audio DSP Generic Module.
*
* Each Firmware file can consist of 1..N modules. A module can span multiple
@@ -203,6 +213,9 @@ struct sst_module {
struct list_head list; /* DSP list of modules */
struct list_head list_fw; /* FW list of modules */
struct list_head runtime_list; /* list of runtime module objects*/
+
+ /* state */
+ enum sst_module_state state;
};
/*