aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-11-07 01:45:16 -0500
committerTakashi Iwai <tiwai@suse.de>2013-11-07 15:19:54 -0500
commitca2b029515b4a81bbedcffc69a5d9574bb5ba475 (patch)
tree5c6cb278935a2bcf6516faf2ed27335e3745e054
parentaff747ebbf68c6efc4d091d54058af89b916f82d (diff)
ASoC: generic-dmaengine-pcm: Use SNDRV_DMA_TYPE_DEV_IRAM as default
When allocating memory space for DMA buffer, use on-chip internal SRAM as default choice to save power. Since the core would allocate memory from traditional external memory if iram allocation failed, we don't need to worry about any side effect. Signed-off-by: Nicolin Chen <b42378@freescale.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/soc/soc-generic-dmaengine-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c
index ee0790337ec9..51fded3640a5 100644
--- a/sound/soc/soc-generic-dmaengine-pcm.c
+++ b/sound/soc/soc-generic-dmaengine-pcm.c
@@ -228,7 +228,7 @@ static int dmaengine_pcm_new(struct snd_soc_pcm_runtime *rtd)
228 } 228 }
229 229
230 ret = snd_pcm_lib_preallocate_pages(substream, 230 ret = snd_pcm_lib_preallocate_pages(substream,
231 SNDRV_DMA_TYPE_DEV, 231 SNDRV_DMA_TYPE_DEV_IRAM,
232 dmaengine_dma_dev(pcm, substream), 232 dmaengine_dma_dev(pcm, substream),
233 prealloc_buffer_size, 233 prealloc_buffer_size,
234 max_buffer_size); 234 max_buffer_size);