ASoC: pcm: Do not open FEs with no BEs connected
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 30 May 2025 14:12:31 +0000 (16:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Jun 2025 11:27:42 +0000 (12:27 +0100)
commit59a4d9a9efd921ae2b722ffa52217124bcbc0acf
tree0e181250b4ffad4f7a869faad1219b278f39c40b
parent9adf2de86611ac108d07e769a699556d87f052e2
ASoC: pcm: Do not open FEs with no BEs connected

The check is performed in prepare-step, that is dpcm_fe_dai_prepare()
but that is very late - code operates on invalid configuration from
dpcm_fe_dai_open() till it gets there. Relocate the check to the
open-step to avoid any invalid scenarios.

Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250530141231.2943351-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c