Skip to content

Commit

Permalink
ASoC: Intel: Fix allocated block list usage when adding blocks.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liam Girdwood authored and Mark Brown committed May 2, 2014
1 parent 48695f3 commit 84fbdd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/intel/sst-firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ static int block_alloc_contiguous(struct sst_module *module,
size -= block->size;
}

list_for_each_entry(block, &tmp, list)
list_add(&block->module_list, &module->block_list);

list_splice(&tmp, &dsp->used_block_list);
return 0;
}
Expand Down

0 comments on commit 84fbdd5

Please sign in to comment.