mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 3a8e536be0711ee4985c227fee67e569aa93f9a7 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Martin=20Povi=C5=A1er?= <povik+lin@cutebit.org>
|
|
Date: Thu, 24 Feb 2022 14:51:00 +0100
|
|
Subject: [PATCH 079/171] HACK: ASoC: Allow an N-cpus-to-M-codecs link
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
|
|
---
|
|
sound/soc/soc-pcm.c | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
|
|
index a827cc3c158a..542c308df17c 100644
|
|
--- a/sound/soc/soc-pcm.c
|
|
+++ b/sound/soc/soc-pcm.c
|
|
@@ -2811,9 +2811,10 @@ 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 {
|
|
- dev_err(rtd->card->dev,
|
|
- "N cpus to M codecs link is not supported yet\n");
|
|
- return -EINVAL;
|
|
+ cpu_dai = asoc_rtd_to_cpu(rtd, 0);
|
|
+ //dev_err(rtd->card->dev,
|
|
+ // "N cpus to M codecs link is not supported yet\n");
|
|
+ //return -EINVAL;
|
|
}
|
|
|
|
if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) &&
|
|
--
|
|
2.34.1
|
|
|