Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48695f3d authored by Liam Girdwood's avatar Liam Girdwood Committed by Mark Brown
Browse files

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: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent de30a2cc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
		}