From 20040e1da8d72efe6bce9d1f1a6fa2631c3707ed Mon Sep 17 00:00:00 2001 From: Neema Shetty Date: Mon, 23 Sep 2013 23:45:24 -0700 Subject: [PATCH] ASoC: core: Update DMA mask for hostless pcm devices Hostless pcm device coherent DMA mask is hardcorded to 32. Update it based on size of dma address to support both 32 and 64 bit Change-Id: I604d440cfd5abcf473ec87b18b5cc6ee8ff42b49 Signed-off-by: Neema Shetty Signed-off-by: Vidyakumar Athota --- sound/soc/soc-pcm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 69c764c6fe42..8e645bbec656 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -942,7 +942,8 @@ static int soc_pcm_hw_params(struct snd_pcm_substream *substream, if (rtd->dai_link->no_host_mode == SND_SOC_DAI_LINK_NO_HOST) { substream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV; substream->dma_buffer.dev.dev = rtd->dev; - substream->dma_buffer.dev.dev->coherent_dma_mask = DMA_BIT_MASK(32); + substream->dma_buffer.dev.dev->coherent_dma_mask = + DMA_BIT_MASK(sizeof(dma_addr_t) * 8); substream->dma_buffer.private_data = NULL; ret = snd_pcm_lib_malloc_pages(substream, PAGE_SIZE);