[alsa-devel] [PATCH v4 8/8] ASoC: core: Add a warning for link_dai_widget in the multicodec case
Benoit Cousson
bcousson at baylibre.com
Tue Jul 1 09:48:01 CEST 2014
Multicodec links are not supported in the case of CODEC to CODEC links.
Just print a warning if it happens.
Signed-off-by: Benoit Cousson <bcousson at baylibre.com>
---
sound/soc/soc-core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 3764150..3640242 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1486,6 +1486,9 @@ static int soc_link_dai_widgets(struct snd_soc_card *card,
struct snd_soc_dapm_widget *play_w, *capture_w;
int ret;
+ if (rtd->num_codecs > 1)
+ dev_warn(card->dev, "ASoC: Multiple codecs not supported yet\n");
+
/* link the DAI widgets */
play_w = codec_dai->playback_widget;
capture_w = cpu_dai->capture_widget;
--
1.9.1
More information about the Alsa-devel
mailing list