[PATCH 0/4] ASoC: Use dmaengine API instead of chan->device->dev

From: Frank . Li

Date: Fri Nov 06 2026 - 15:14:56 EST


Replace open-coded chan->device->dev accesses in ASoC drivers with
the proper dmaengine accessor APIs:

- dmaengine_get_dma_device(): returns the device used for DMA
mappings; may return a per-channel device if the dmaengine
supports per-channel IOMMU mapping.
- dmaengine_get_provider_device(): returns the dmaengine provider
device that carries the of_node, used for device-tree based
channel filtering.

This avoids direct access to DMA engine internals and prepares
for making struct dma_device private.

After previous post patch
1: applied https://lore.kernel.org/imx/179396622411.3073895.524075215689851221.b4-ty@b4/
2: under review https://lore.kernel.org/imx/CAA+D8ANwEqFJYQ39h+1A3zXhcUfpFGzSvVjEzx2htoYxB4sLGg@xxxxxxxxxxxxxx/

sound directory can pass build with allyesconfig after really move
struct dma_device to drivers/dmaengine/dmaengine.h

Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
Frank Li (4):
ASoC: apple: mca: Use dmaengine_get_dma_device() instead of chan->device->dev
ASoC: fsl: asrc: Use dmaengine API instead of chan->device->dev
ASoC: renesas: rcar: Use dmaengine_get_dma_device() instead of chan->device->dev
ASoC: ti: davinci-mcasp: Use dmaengine_get_provider_device() API

sound/soc/apple/mca.c | 4 ++--
sound/soc/fsl/fsl_asrc_dma.c | 4 ++--
sound/soc/renesas/rcar/dma.c | 2 +-
sound/soc/ti/davinci-mcasp.c | 10 ++++------
4 files changed, 9 insertions(+), 11 deletions(-)
---
base-commit: 13716421a63a932e09c1f56d78f6055c2fa069c1
change-id: 20261106-dma_sound_cleanup-d6b21ff86f31

Best regards,
--
Frank Li <Frank.Li@xxxxxxx>