ASoC: Fail card instantiation if DAI format setup fails
authorRicard Wanderlof <ricard.wanderlof@axis.com>
Wed, 24 Jul 2019 09:38:44 +0000 (11:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:26:38 +0000 (08:26 +0200)
commita56c79efe4dc8ae560eb2c9a4b755d57c8c2e8f4
treeeb563308322c0722c966146f32e2b33323df97b7
parent16c832681f7e14866f821af6ca76937bd347d493
ASoC: Fail card instantiation if DAI format setup fails

[ Upstream commit 40aa5383e393d72f6aa3943a4e7b1aae25a1e43b ]

If the DAI format setup fails, there is no valid communication format
between CPU and CODEC, so fail card instantiation, rather than continue
with a card that will most likely not function properly.

Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
Link: https://lore.kernel.org/r/alpine.DEB.2.20.1907241132350.6338@lnxricardw1.se.axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-core.c