* [PATCH] ASoC: tlv320aic3x: Add multi endpoint support
@ 2026-04-11 13:05 Marek Vasut
2026-04-26 21:55 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2026-04-11 13:05 UTC (permalink / raw)
To: linux-sound
Cc: Marek Vasut, Baojun Xu, Jaroslav Kysela, Kevin Lu, Liam Girdwood,
Mark Brown, Shenghao Ding, Takashi Iwai, linux-kernel
Support multiple endpoints on TLV320AIC3xxx codec port when
used in of_graph context.
This patch allows to share the codec port between two CPU DAIs.
Custom STM32MP255C board uses TLV320AIC3104 audio codec. This codec
is connected to two serial audio interfaces, which are configured
either as rx or tx.
However, when the audio graph card parses the codec nodes, it expects
to find DAI interface indexes matching the endpoints indexes.
The current patch forces the use of DAI id 0 for both endpoints,
which allows to share the codec DAI between the two CPU DAIs
for playback and capture streams respectively.
Signed-off-by: Marek Vasut <marex@nabladev.com>
---
Cc: Baojun Xu <baojun.xu@ti.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Kevin Lu <kevin-lu@ti.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Shenghao Ding <shenghao-ding@ti.com>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-sound@vger.kernel.org
---
sound/soc/codecs/tlv320aic3x.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index ce22298b43efc..b12c1952823ba 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1689,8 +1689,15 @@ static int aic3x_component_probe(struct snd_soc_component *component)
return 0;
}
+static int aic3x_of_xlate_dai_id(struct snd_soc_component *component,
+ struct device_node *endpoint)
+{
+ return 0;
+}
+
static const struct snd_soc_component_driver soc_component_dev_aic3x = {
.set_bias_level = aic3x_set_bias_level,
+ .of_xlate_dai_id = aic3x_of_xlate_dai_id,
.probe = aic3x_component_probe,
.controls = aic3x_snd_controls,
.num_controls = ARRAY_SIZE(aic3x_snd_controls),
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: tlv320aic3x: Add multi endpoint support
2026-04-11 13:05 [PATCH] ASoC: tlv320aic3x: Add multi endpoint support Marek Vasut
@ 2026-04-26 21:55 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-04-26 21:55 UTC (permalink / raw)
To: linux-sound, Marek Vasut
Cc: Baojun Xu, Jaroslav Kysela, Kevin Lu, Liam Girdwood,
Shenghao Ding, Takashi Iwai, linux-kernel
On Sat, 11 Apr 2026 15:05:12 +0200, Marek Vasut wrote:
> ASoC: tlv320aic3x: Add multi endpoint support
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.2
Thanks!
[1/1] ASoC: tlv320aic3x: Add multi endpoint support
https://git.kernel.org/broonie/sound/c/ed05258250dc
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-26 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-11 13:05 [PATCH] ASoC: tlv320aic3x: Add multi endpoint support Marek Vasut
2026-04-26 21:55 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®