Skip to content

Commit

Permalink
ASoC: Intel: Fix block allocation so we only allocate blocks once.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liam Girdwood authored and Mark Brown committed May 2, 2014
1 parent de30a2c commit 48695f3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/soc/intel/sst-firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 48695f3

Please sign in to comment.