]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: remove conflicts when load/unload multiple firmware images
authorLu, Han <han.lu@intel.com>
Wed, 25 Feb 2015 00:26:21 +0000 (08:26 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2015 21:08:12 +0000 (21:08 +0000)
commit17168a0521ed51e0f4b962adac1f0bf482d349f5
tree0e07803925df6382da8544cc17f81bacfcf9c5dc
parentaa64ae8a0d7599b84a8c040d58f87b21407c987b
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>
sound/soc/intel/sst-haswell-dsp.c
sound/soc/intel/sst-haswell-ipc.c