]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: Don't reconnect an already active BE
authorSameer Pujar <spujar@nvidia.com>
Mon, 13 Sep 2021 16:42:09 +0000 (22:12 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 20 Sep 2021 12:31:27 +0000 (13:31 +0100)
commit473a08784da678c0ce524b9a90fd4d715bc12ebd
treedc4dbb419007219dd4312df882b7659a3d5a6c41
parentd008fdaee4d318cf8e775476e740fd847d808e25
ASoC: soc-pcm: Don't reconnect an already active BE

In some cases, multiple FE components have the same BE component in their
respective DPCM paths. One such example would be a mixer component, which
can receive two or more inputs and sends a mixed output. In such cases,
to avoid reconfiguration of already active DAI (mixer output DAI in this
case), check the BE stream state to filter out the redundancy.

In summary, allow connection of BE if the respective current stream state
is either NEW or CLOSED.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/1631551342-25469-2-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c