From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH v2][RESEND] ASoC: generic-dmaengine-pcm: Use SNDRV_DMA_TYPE_DEV_IRAM as default Date: Thu, 07 Nov 2013 07:58:45 +0100 Message-ID: <527B3A25.2060304@metafoo.de> References: <1383806716-23469-1-git-send-email-b42378@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-181.synserver.de (smtp-out-182.synserver.de [212.40.185.182]) by alsa0.perex.cz (Postfix) with ESMTP id 4DEE72650AE for ; Thu, 7 Nov 2013 07:58:40 +0100 (CET) In-Reply-To: <1383806716-23469-1-git-send-email-b42378@freescale.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Nicolin Chen Cc: tiwai@suse.de, alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org On 11/07/2013 07:45 AM, Nicolin Chen wrote: > 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 Acked-by: Lars-Peter Clausen > --- > > * ! 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 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); >