Browse Source

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: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Liam Girdwood 11 years ago
parent
commit
84fbdd5861
1 changed files with 3 additions and 0 deletions
  1. 3 0
      sound/soc/intel/sst-firmware.c

+ 3 - 0
sound/soc/intel/sst-firmware.c

@@ -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;
 }
 }