ASoC: Intel: Fix block allocation so we only allocate blocks once.

Make sure we dont alloc blocks twice with requests spanning more
than one block.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Liam Girdwood 2014-05-02 16:56:27 +01:00 committed by Mark Brown
parent de30a2ccb2
commit 48695f3d4e

View File

@ -376,10 +376,6 @@ static int block_alloc_fixed(struct sst_module *module,
if (err < 0)
return -ENOMEM;
/* add block */
block->data_type = data->data_type;
list_move(&block->list, &dsp->used_block_list);
list_add(&block->module_list, &module->block_list);
return 0;
}