ASoC: add new trigger ordering method
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 8 Jun 2023 06:48:36 +0000 (06:48 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2023 11:11:19 +0000 (12:11 +0100)
commit356caf663deee8dc46ff3168ec0b24bcbeb00b28
tree0e16dd3f3ef911c149db0ed9f5b228346fc5aa9e
parent597d364cd7b447aff5668639b90ec33ea420eaa2
ASoC: add new trigger ordering method

Current ASoC is assuming that trigger starting order is
Link -> Component -> DAI as default, and its reverse order for stopping.
But some Driver / Card want to reorder it for some reasons.
We have such flags, but is unbalance like below.

struct snd_soc_component_driver :: start_dma_last
struct snd_soc_dai_link :: stop_dma_first

We want to have more flexible, and more generic method.
This patch adds new snd_soc_trigger_order for start/stop at
component / DAI-link.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87r0qmfnzx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h
include/sound/soc.h
sound/soc/soc-pcm.c