]> git.hungrycats.org Git - linux/commit
ASoC: soc-generic-dmaengine: Handle DMA channel request failures correctly
authorbui duc phuc <phucduc.bui@gmail.com>
Mon, 20 Jul 2026 06:41:31 +0000 (13:41 +0700)
committerMark Brown <broonie@kernel.org>
Tue, 28 Jul 2026 18:38:32 +0000 (19:38 +0100)
commit9167f260477b18ee9ffffc35fcf721f7255c444f
treeeacd00bfb9b3a1ae72f4fa52a3baa1cbbd0e82cd
parent14cdac7638c3367c39af206456ed2f2d37e59401
ASoC: soc-generic-dmaengine: Handle DMA channel request failures correctly

Currently any dma_request_chan() failure other than -EPROBE_DEFER is
silently ignored, since a missing channel is expected for devices that
only support one DMA direction.

Improve the handling of these failures by:
- reporting failures when a configured DMA channel cannot be requested;
- failing probe if neither playback nor capture obtains a DMA channel,
  since the PCM device would be unusable.

Devices that legitimately support only one DMA direction continue to
work as before.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260720064131.75156-1-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c