ASoC: topology: Do not ignore route checks when parsing graphs
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 8 Mar 2024 09:04:59 +0000 (10:04 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 00:32:38 +0000 (00:32 +0000)
commit6974857c2b2c7e2d2db59c0e23cc42b0efc58cd8
tree67d7c7a0cf9cddca9c15c1bff834abbcc59692fb
parent0cb3b7fd530b8c107443218ce6db5cb6e7b5dbe1
ASoC: topology: Do not ignore route checks when parsing graphs

One of the framework responsibilities is to ensure that the enumerated
DPCMs are valid i.e.: a valid BE is connected to a valid FE DAI. While
the are checks in soc-core.c and soc-pcm.c that verify this, a component
driver may attempt to workaround this by loading an invalid graph
through the topology file.

Be strict and fail topology loading when invalid graph is encountered.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://msgid.link/r/20240308090502.2136760-3-cezary.rojewski@intel.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c