[alsa-devel] [PATCH] ASoC: Intel: Fix block allocation so we only allocate blocks once.
Liam Girdwood
liam.r.girdwood at linux.intel.com
Fri May 2 17:56:27 CEST 2014
Make sure we dont alloc blocks twice with requests spanning more
than one block.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
sound/soc/intel/sst-firmware.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index f768710..c4e7126 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -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;
}
--
1.9.1
More information about the Alsa-devel
mailing list