]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jul 2019 16:01:45 +0000 (17:01 +0100)
commit462fbc8c4da6aa88e00d0c4f801bda57a313bfa7
tree06fe033ee22483e3b39c84acb848c688bad562d4
parentb149c8763db49f9151ab3c724968a9a84117d54e
ASoC: Fail card instantiation if DAI format setup fails

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>
sound/soc/soc-core.c