summaryrefslogtreecommitdiff
path: root/sound/soc/intel/sst-haswell-dsp.c
diff options
context:
space:
mode:
authorLu, Han <han.lu@intel.com>2015-02-25 08:26:21 +0800
committerMark Brown <broonie@kernel.org>2015-03-06 21:08:12 +0000
commit3fe0607a04ed7deea7c048052fd63b8670e7a176 (patch)
tree0e07803925df6382da8544cc17f81bacfcf9c5dc /sound/soc/intel/sst-haswell-dsp.c
parentde251d773bb214fa5e7666a0da1225528e07da5e (diff)
ASoC: Intel: remove conflicts when load/unload multiple firmware images
Details: 1. Unload all modules on fw_list of dsp when suspend, and reload all modules on fw_list when resume. 2. A DSP expects only one scratch, but hsw_parse_fw_image() allocates scratch blocks for each firmware image it parses. Move the allocate function sst_block_alloc_scratch() out of hsw_parse_fw_image() to make sure a scratch be allocated only after all firmware images be parsed. Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-haswell-dsp.c')
-rw-r--r--sound/soc/intel/sst-haswell-dsp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/intel/sst-haswell-dsp.c b/sound/soc/intel/sst-haswell-dsp.c
index 57039b00efc2..f6e1e6b2b18e 100644
--- a/sound/soc/intel/sst-haswell-dsp.c
+++ b/sound/soc/intel/sst-haswell-dsp.c
@@ -207,9 +207,6 @@ static int hsw_parse_fw_image(struct sst_fw *sst_fw)
module = (void *)module + sizeof(*module) + module->mod_size;
}
- /* allocate scratch mem regions */
- sst_block_alloc_scratch(dsp);
-
return 0;
}