summaryrefslogtreecommitdiff
path: root/sound/soc/amd/acp.h
diff options
context:
space:
mode:
authorYu Zhao <yuzhao@google.com>2018-12-05 01:42:52 +0300
committerMark Brown <broonie@kernel.org>2018-12-06 15:53:04 +0300
commitd6d08273996b3363178b920ccfa74acabaf67963 (patch)
treedb0aa557c36a9b2ab3b262a0d2bb9462b27cf012 /sound/soc/amd/acp.h
parent20f2ab247d3b787af91c1aa5eb27c5061744c154 (diff)
downloadlinux-d6d08273996b3363178b920ccfa74acabaf67963.tar.xz
ASoC: use DMA addr rather than CPU pa for acp_audio_dma
We shouldn't assume CPU physical address we get from page_to_phys() is same as DMA address we get from dma_alloc_coherent(). On x86_64, we won't run into any problem with the assumption when dma_ops is nommu_dma_ops. However, DMA address is IOVA when IOMMU is enabled. And it's most likely different from CPU physical address when AMD IOMMU is not in passthrough mode. Signed-off-by: Yu Zhao <yuzhao@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp.h')
-rw-r--r--sound/soc/amd/acp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp.h b/sound/soc/amd/acp.h
index dbbb1a85638d..e5ab6c6040a6 100644
--- a/sound/soc/amd/acp.h
+++ b/sound/soc/amd/acp.h
@@ -123,7 +123,7 @@ enum acp_dma_priority_level {
};
struct audio_substream_data {
- struct page *pg;
+ dma_addr_t dma_addr;
unsigned int order;
u16 num_of_pages;
u16 i2s_instance;