From 7103a8c7b2ce196aded3bdfd8c4cf5afef4a90ff Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Sun, 27 Sep 2026 09:36:23 +0800 Subject: [PATCH] ASoC: soc-generic-dmaengine-pcm: use dmaengine_get_dma_device() for DMA device Replace chan->device->dev with dmaengine_get_dma_device(chan) in dmaengine_dma_dev() so that DMA buffer allocation and mapping go through the correct device when the DMA controller has per-channel IOMMU domains (chan_dma_dev=true). Signed-off-by: Peng Fan Link: https://patch.msgid.link/20260927-sound-dma-v1-1-8b06f971ac0e@nxp.com Signed-off-by: Mark Brown --- sound/soc/soc-generic-dmaengine-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 6d1dbee8f6c1..f6206ecaf26f 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -32,7 +32,7 @@ static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, if (!pcm->chan[substream->stream]) return NULL; - return pcm->chan[substream->stream]->device->dev; + return dmaengine_get_dma_device(pcm->chan[substream->stream]); } /** -- knotmirror 0.0.1