[alsa-devel] [PATCH v2 2/2] ASoC: generic-dmaengine-pcm: Use on-chip internal memory for DMA buffer

Nicolin Chen b42378 at freescale.com
Wed Oct 16 11:34:46 CEST 2013


When allocating memory space for DMA buffer, use on-chip internal memory
as default to save power.

Signed-off-by: Nicolin Chen <b42378 at freescale.com>
---
Changelog
v1->v2:
 * Use iram memory space as default

---
 sound/soc/soc-generic-dmaengine-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c
index e29ec3c..e5b61e3 100644
--- a/sound/soc/soc-generic-dmaengine-pcm.c
+++ b/sound/soc/soc-generic-dmaengine-pcm.c
@@ -163,7 +163,7 @@ static int dmaengine_pcm_new(struct snd_soc_pcm_runtime *rtd)
 		}
 
 		ret = snd_pcm_lib_preallocate_pages(substream,
-				SNDRV_DMA_TYPE_DEV,
+				SNDRV_DMA_TYPE_DEV_IRAM,
 				dmaengine_dma_dev(pcm, substream),
 				config->prealloc_buffer_size,
 				config->pcm_hardware->buffer_bytes_max);
-- 
1.8.4




More information about the Alsa-devel mailing list