ASoC: Intel: Persistent buffers for PCM are twice as big
Persistent buffers for PCM module need to be twice as big.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
diff --git a/sound/soc/intel/sst-haswell-dsp.c b/sound/soc/intel/sst-haswell-dsp.c
index 271b0f0..d60e87b 100644
--- a/sound/soc/intel/sst-haswell-dsp.c
+++ b/sound/soc/intel/sst-haswell-dsp.c
@@ -114,6 +114,10 @@
template.id = module->type;
template.entry = module->entry_point;
template.p.size = module->info.persistent_size;
+
+ if (module->type == SST_HSW_MODULE_PCM)
+ template.p.size *= 2;
+
template.p.type = SST_MEM_DRAM;
template.p.data_type = SST_DATA_P;
template.s.size = module->info.scratch_size;