summaryrefslogtreecommitdiff
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorShiv Maliyappanahalli <smaliyap@codeaurora.org>2016-04-19 16:51:06 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-04-22 15:01:57 -0700
commit52ba772633d61689575b5b824c086fcc3601c8b4 (patch)
tree5eebe00c22782d7758c70003be0abe2683a6759c /sound/soc/soc-pcm.c
parent2d242b7ef9b80be521945884490e4f3702f549c0 (diff)
soc: pcm: add arch_setup_dma_ops call
Make sure that DMA ops are initialized before attempting to allocate the DMA substream buffer. Change-Id: I03bcb4ac7ea415c00ce3047b844455f5c6546400 Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 92813b42904e..36a109dbe3d9 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -981,6 +981,8 @@ static int soc_pcm_hw_params(struct snd_pcm_substream *substream,
DMA_BIT_MASK(sizeof(dma_addr_t) * 8);
substream->dma_buffer.private_data = NULL;
+ arch_setup_dma_ops(substream->dma_buffer.dev.dev,
+ 0, 0, NULL, 0);
ret = snd_pcm_lib_malloc_pages(substream, PAGE_SIZE);
if (ret < 0)
goto platform_err;