summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeema Shetty <nshetty@codeaurora.org>2013-09-23 23:45:24 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:09:57 -0700
commit20040e1da8d72efe6bce9d1f1a6fa2631c3707ed (patch)
tree20c579b51dc8c8dc3b3f556bddcca5286bf3fb89
parent4b0ad86df74112a5dd2201440d414bba87181a88 (diff)
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 <nshetty@codeaurora.org> Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
-rw-r--r--sound/soc/soc-pcm.c3
1 files changed, 2 insertions, 1 deletions
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);