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+1a3zxhcufpfgzsvvjezx2htoyxb4s...@mail.gmail.com/
sound directory can pass build with allyesconfig after really move
struct dma_device to drivers/dmaengine/dmaengine.h
Signed-off-by: Frank Li <[email protected]>
---
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 <[email protected]>