[PATCH] ASoC: core: Support INPUT and OUTPUT DAPM widgets in DT
Ivaylo Dimitrov <[email protected]> Wed, 5 Aug 2026 17:56:25 +0300
| Newsgroups | org.kernel.vger.linux-sound,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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