[RFC PATCH 3/5] HACK: ASoC: Tolerate N-cpus-to-M-codecs links
Martin Povišer
povik+lin at cutebit.org
Thu Mar 31 02:04:47 CEST 2022
Tolerate N-to-M DAI links while using the first CPU DAI to decide
playback/capture abilities.
Signed-off-by: Martin Povišer <povik+lin at cutebit.org>
---
sound/soc/soc-pcm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 9a954680d492..770cf367a147 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2781,9 +2781,12 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd,
} else if (rtd->num_cpus == rtd->num_codecs) {
cpu_dai = asoc_rtd_to_cpu(rtd, i);
} else {
+#if 0
dev_err(rtd->card->dev,
"N cpus to M codecs link is not supported yet\n");
return -EINVAL;
+#endif
+ cpu_dai = asoc_rtd_to_cpu(rtd, 0);
}
if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) &&
--
2.33.0
More information about the Alsa-devel
mailing list