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)
commit59dd33f82dc0975c55d3d46801e7ca45532d7673
tree677d5ddee187d73755fc0422428433b223d32a5a
parentf99986c0fcad8e1d7d842e9a636f55bcc6748da5
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: 4378f1fbe92405 ("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