ASoC: generic-dmaengine-pcm: Use SNDRV_DMA_TYPE_DEV_IRAM as default
Subsystems (3)
PATCH RESEND v2 1/1 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.
---
* ! This patch should be applied to a branch containing the patch -- ALSA:
* Add SoC on-chip internal ram support for DMA buffer allocation.
Changelogv1->v2:
* Use iram memory space as default
sound/soc/soc-generic-dmaengine-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-generic-dmaengine-pcm.c +1 -1
@@ -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);
Signature · 1 line
1.8.4
Quoted 6 lines · Nicolin Chen
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 <[email protected]>
Quoted 26 lines
---
* ! This patch should be applied to a branch containing the patch -- ALSA:
* Add SoC on-chip internal ram support for DMA buffer allocation.Changelog
v1->v2:
* Use iram memory space as defaultsound/soc/soc-generic-dmaengine-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/soc-generic-dmaengine-pcm.c +1
-1@@ -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);
Quoted 4 lines · Nicolin Chen
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.
At Thu, 7 Nov 2013 11:32:18 +0000,
Quoted 8 lines · Mark Brown
Quoted 4 lines · Nicolin Chen
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.
Acked-by Mark Brown <[email protected]>
It's an ASoC helper, so would you take into your tree? Lars already gave an Ack.
Takashi
Mark Brown
maintainerQuoted 2 lines · Takashi Iwai
It's an ASoC helper, so would you take into your tree? Lars already gave an Ack.
I can do but it depends on the IRAM stuff which is only in your tree until the merge window is done - seems better to either just apply there or wait for the merge window to finish rather than have me merge in the changes?
At Thu, 7 Nov 2013 19:56:14 +0000,
Quoted 10 lines · Mark Brown
Quoted 2 lines · Takashi Iwai
It's an ASoC helper, so would you take into your tree? Lars already gave an Ack.
I can do but it depends on the IRAM stuff which is only in your tree until the merge window is done - seems better to either just apply there or wait for the merge window to finish rather than have me merge in the changes?
OK, applied to my tree now.
Takashi