+++ /dev/null
-From 23ef2a8aea13486004622afb1fdfd0ec8fe24d30 Mon Sep 17 00:00:00 2001
-From: Ricard Wanderlof <ricard.wanderlof@axis.com>
-Date: Wed, 24 Jul 2019 11:38:44 +0200
-Subject: 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 | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
-index b927f9c81d922..8d10a24d38e06 100644
---- a/sound/soc/soc-core.c
-+++ b/sound/soc/soc-core.c
-@@ -1357,8 +1357,11 @@ static int soc_probe_link_dais(struct snd_soc_card *card, int num, int order)
- }
- }
-
-- if (dai_link->dai_fmt)
-- snd_soc_runtime_set_dai_fmt(rtd, dai_link->dai_fmt);
-+ if (dai_link->dai_fmt) {
-+ ret = snd_soc_runtime_set_dai_fmt(rtd, dai_link->dai_fmt);
-+ if (ret)
-+ return ret;
-+ }
-
- ret = soc_post_component_init(rtd, dai_link->name);
- if (ret)
---
-2.20.1
-
netfilter-ebtables-fix-a-memory-leak-bug-in-compat.patch
bonding-force-slave-speed-check-after-link-state-rec.patch
can-dev-call-netif_carrier_off-in-register_candev.patch
-asoc-fail-card-instantiation-if-dai-format-setup-fai.patch
st21nfca_connectivity_event_received-null-check-the-.patch
st_nci_hci_connectivity_event_received-null-check-th.patch
asoc-ti-davinci-mcasp-correct-slot_width-posed-const.patch
+++ /dev/null
-From d3e2105c72b22011b4839e7031bf0026dfcb3f06 Mon Sep 17 00:00:00 2001
-From: Ricard Wanderlof <ricard.wanderlof@axis.com>
-Date: Wed, 24 Jul 2019 11:38:44 +0200
-Subject: 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 | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
-index 168559b5e9f32..d4fb45710eec1 100644
---- a/sound/soc/soc-core.c
-+++ b/sound/soc/soc-core.c
-@@ -1632,8 +1632,11 @@ static int soc_probe_link_dais(struct snd_soc_card *card,
- }
- }
-
-- if (dai_link->dai_fmt)
-- snd_soc_runtime_set_dai_fmt(rtd, dai_link->dai_fmt);
-+ if (dai_link->dai_fmt) {
-+ ret = snd_soc_runtime_set_dai_fmt(rtd, dai_link->dai_fmt);
-+ if (ret)
-+ return ret;
-+ }
-
- ret = soc_post_component_init(rtd, dai_link->name);
- if (ret)
---
-2.20.1
-
asoc-dapm-fix-handling-of-custom_stop_condition-on-d.patch
bonding-force-slave-speed-check-after-link-state-rec.patch
can-dev-call-netif_carrier_off-in-register_candev.patch
-asoc-fail-card-instantiation-if-dai-format-setup-fai.patch
st21nfca_connectivity_event_received-null-check-the-.patch
st_nci_hci_connectivity_event_received-null-check-th.patch
asoc-ti-davinci-mcasp-correct-slot_width-posed-const.patch