diff options
| author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2014-05-02 11:56:27 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-05-02 12:51:58 -0400 |
| commit | 48695f3d4e7abbfb8fbba45397dce4d5fc0ccfed (patch) | |
| tree | 8ce80f3ccf4e011fd9611ada4a356382cb94c144 | |
| parent | de30a2ccb20d9baf5dac8a9c8ba8f0d9d5f4361e (diff) | |
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>
| -rw-r--r-- | sound/soc/intel/sst-firmware.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index f7687107cf7f..c4e7126ebc06 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, | |||
| 376 | if (err < 0) | 376 | if (err < 0) |
| 377 | return -ENOMEM; | 377 | return -ENOMEM; |
| 378 | 378 | ||
| 379 | /* add block */ | ||
| 380 | block->data_type = data->data_type; | ||
| 381 | list_move(&block->list, &dsp->used_block_list); | ||
| 382 | list_add(&block->module_list, &module->block_list); | ||
| 383 | return 0; | 379 | return 0; |
| 384 | } | 380 | } |
| 385 | 381 | ||
