mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: soc-generic-dmaengine-pcm: use dmaengine_get_dma_device() for DMA device
@ 2026-09-27  1:36 Peng Fan (OSS)
  2026-09-28 14:18 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan (OSS) @ 2026-09-27  1:36 UTC (permalink / raw)
  To: Lars-Peter Clausen, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Frank Li
  Cc: Chancel Liu, Shengjiu Wang, linux-sound, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

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 <peng.fan@nxp.com>
---
 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 6d1dbee8f6c14..f6206ecaf26fe 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]);
 }
 
 /**

---
base-commit: f5f84daefcd92d7a630066635ecea1433ed5eac7
change-id: 20260927-sound-dma-eca4f6b9faf7

Best regards,
--  
Peng Fan <peng.fan@nxp.com>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-28 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-27  1:36 [PATCH] ASoC: soc-generic-dmaengine-pcm: use dmaengine_get_dma_device() for DMA device Peng Fan (OSS)
2026-09-28 14:18 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®