ASoC: fsl_asrc_m2m: use dma_chan directly for dma_async_issue_pending()
Subsystems (4)
PATCH 1/1 ASoC: fsl_asrc_m2m: use dma_chan directly for dma_async_issue_pending()
From: Frank Li <[email protected]>
Use pair->dma_chan[] directly instead of pair->desc[]->chan when calling dma_async_issue_pending(), which is more straightforward and avoids dereferencing the descriptor to get the channel.
Prepare to make struct dma_async_tx_descriptor private.
--- sound/soc/fsl/fsl_asrc_m2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/fsl/fsl_asrc_m2m.c +2 -2
@@ -257,12 +257,12 @@ static int asrc_m2m_device_run(struct fsl_asrc_pair *pair, struct snd_compr_task/* Submit DMA request */ dmaengine_submit (pair->desc[IN ]); -dma_async_issue_pending (pair->desc[IN ]->chan); +dma_async_issue_pending (pair->dma_chan[IN ]);if (out_dma_len >0 ) {if (asrc->start_before_dma && asrc->m2m_output_ready) asrc->m2m_output_ready (pair);dmaengine_submit (pair->desc[OUT ]); -dma_async_issue_pending (pair->desc[OUT ]->chan); +dma_async_issue_pending (pair->dma_chan[OUT ]); }if (!asrc->start_before_dma)
Signature · 1 line
2.43.0
Quoted 10 lines · On Tue, Nov 3, 2026 at 3:52 AM <[email protected]> wrote:
From: Frank Li <[email protected]>
Use pair->dma_chan[] directly instead of pair->desc[]->chan when calling
dma_async_issue_pending(), which is more straightforward and avoids dereferencing the descriptor to get the channel.Prepare to make struct
dma_async_tx_descriptorprivate.Signed-off-by Frank Li <[email protected]>
Best regards
Shengjiu Wang
Quoted 26 lines
--- sound/soc/fsl/fsl_asrc_m2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/soc/fsl/fsl_asrc_m2m.c +2
-3@@ -257,12 +257,12 @@ static int asrc_m2m_device_run(struct fsl_asrc_pair *pair, struct snd_compr_task/* Submit DMA request */ dmaengine_submit (pair->desc[IN ]); -dma_async_issue_pending (pair->desc[IN ]->chan); +dma_async_issue_pending (pair->dma_chan[IN ]);if (out_dma_len >0 ) {if (asrc->start_before_dma && asrc->m2m_output_ready) asrc->m2m_output_ready (pair);dmaengine_submit (pair->desc[OUT ]); -dma_async_issue_pending (pair->desc[OUT ]->chan); +dma_async_issue_pending (pair->dma_chan[OUT ]); }if (!asrc->start_before_dma) --2.43.0
Mark Brown
maintainerQuoted 1 line · On Mon, 02 Nov 2026 14:52:27 -0500, [email protected] wrote:
ASoC:
fsl_asrc_m2m: usedma_chandirectly fordma_async_issue_pending()
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5
Thanks!
[1/1] ASoC: fsl_asrc_m2m: use dma_chan directly for dma_async_issue_pending()
https://git.kernel.org/broonie/sound/c/28c0e86dc8f3
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