Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ASoC: core: Support INPUT and OUTPUT DAPM widgets in DT
@ 2026-08-05 14:56 Ivaylo Dimitrov
  2026-08-05 16:40 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Ivaylo Dimitrov @ 2026-08-05 14:56 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, Ivaylo Dimitrov

Allow the DT audio graph parser to instantiate INPUT and OUTPUT DAPM
widgets.

This extends the set of DAPM widgets that can be described in DT and
allows modelling external audio endpoints as part of the DAPM graph.
This is useful for more complex topologies, such as codec-to-codec links
or multi-DAI audio paths, where routing through external endpoints needs
to be expressed using standard DAPM routes.

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
 sound/soc/soc-core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 44f9bb4473f5..ce71579b5e79 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2864,6 +2864,8 @@ static const struct snd_soc_dapm_widget simple_widgets[] = {
 	SND_SOC_DAPM_LINE("Line", NULL),
 	SND_SOC_DAPM_HP("Headphone", NULL),
 	SND_SOC_DAPM_SPK("Speaker", NULL),
+	SND_SOC_DAPM_INPUT("Input"),
+	SND_SOC_DAPM_OUTPUT("Output"),
 };
 
 int snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card,
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-06  6:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05 14:56 [PATCH] ASoC: core: Support INPUT and OUTPUT DAPM widgets in DT Ivaylo Dimitrov
2026-08-05 16:40 ` Mark Brown
2026-08-05 17:16   ` Ivaylo Dimitrov
2026-08-05 17:23     ` Mark Brown
2026-08-05 21:36       ` Ivaylo Dimitrov
2026-08-06  6:14       ` Ivaylo Dimitrov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox