]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: add a flag to reverse the stop sequence
authorVijendar Mukunda <vijendar.mukunda@amd.com>
Fri, 16 Jul 2021 12:30:12 +0000 (18:00 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 16 Jul 2021 12:54:58 +0000 (13:54 +0100)
commitb14c7f779a49faf0c26737b4044427affac10c80
tree677d5ddee187d73755fc0422428433b223d32a5a
parent1c8ebc3a512caaaa0546db2aa1ce398ceecc6bdd
ASoC: soc-pcm: add a flag to reverse the stop sequence

On stream stop, currently CPU DAI stop sequence invoked first
followed by DMA. For Few platforms, it is required to stop the
DMA first before stopping CPU DAI.

Introduced new flag in dai_link structure for reordering stop sequence.
Based on flag check, ASoC core will re-order the stop sequence.

Fixes: e3e2be2bb85ad0 ("ASoC: soc-pcm: Use different sequence for start/stop trigger")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20210716123015.15697-1-vijendar.mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-pcm.c