diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2014-05-02 11:56:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-02 12:53:01 -0400 |
commit | 84fbdd58614e35108ece5c79ada33443dbcdaf37 (patch) | |
tree | 02e481814bc2a2aeec40d120fbbdaf75ec3daf45 /sound | |
parent | 48695f3d4e7abbfb8fbba45397dce4d5fc0ccfed (diff) |
ASoC: Intel: Fix allocated block list usage when adding blocks.
Make sure we add the allocated blocks to the modules list of blocks.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/intel/sst-firmware.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index c4e7126ebc06..5fed75cef64f 100644 --- a/sound/soc/intel/sst-firmware.c +++ b/sound/soc/intel/sst-firmware.c | |||
@@ -202,6 +202,9 @@ static int block_alloc_contiguous(struct sst_module *module, | |||
202 | size -= block->size; | 202 | size -= block->size; |
203 | } | 203 | } |
204 | 204 | ||
205 | list_for_each_entry(block, &tmp, list) | ||
206 | list_add(&block->module_list, &module->block_list); | ||
207 | |||
205 | list_splice(&tmp, &dsp->used_block_list); | 208 | list_splice(&tmp, &dsp->used_block_list); |
206 | return 0; | 209 | return 0; |
207 | } | 210 | } |