提交 84fbdd58 编写于 作者: L Liam Girdwood 提交者: Mark Brown

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: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 48695f3d
...@@ -202,6 +202,9 @@ static int block_alloc_contiguous(struct sst_module *module, ...@@ -202,6 +202,9 @@ static int block_alloc_contiguous(struct sst_module *module,
size -= block->size; 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); list_splice(&tmp, &dsp->used_block_list);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册