mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
ASoC: pcm: update arch_setup_dma_ops to of_dma_configure for hostless
arch_setup_dma_ops is not exported and when compiling ASoC framework as modules, it would not found arch_setup_dma_ops. Change it to of_dma_configure to resolve this issue. Change-Id: I2a031373eff8a4abc212798825c9effd77bce9f7 Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
c5d20367bc
commit
54792d2a02
1 changed files with 2 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include <linux/export.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <sound/core.h>
|
||||
#include <sound/pcm.h>
|
||||
#include <sound/pcm_params.h>
|
||||
|
|
@ -1007,8 +1008,7 @@ 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);
|
||||
of_dma_configure(substream->dma_buffer.dev.dev, NULL, true);
|
||||
ret = snd_pcm_lib_malloc_pages(substream, PAGE_SIZE);
|
||||
if (ret < 0)
|
||||
goto component_err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue