* [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
* Re: [PATCH] ASoC: soc-generic-dmaengine-pcm: use dmaengine_get_dma_device() for DMA device
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
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-09-28 14:18 UTC (permalink / raw)
To: Lars-Peter Clausen, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Frank Li, Peng Fan (OSS)
Cc: Chancel Liu, Shengjiu Wang, linux-sound, linux-kernel, Peng Fan
On Sun, 27 Sep 2026 09:36:23 +0800, Peng Fan (OSS) wrote:
> ASoC: soc-generic-dmaengine-pcm: use dmaengine_get_dma_device() for DMA device
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/1] ASoC: soc-generic-dmaengine-pcm: use dmaengine_get_dma_device() for DMA device
https://git.kernel.org/broonie/sound/c/7103a8c7b2ce
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ 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®