[PATCH 1/4] ASoC: tlv320aic32x4: Add missing DAC and driver output mixer routes

From: Gianfranco Mariotti

Date: Mon Nov 23 2026 - 18:41:19 EST


The HPR and LOL output routing selection registers (Page 1, Registers 13
and 14) support routing the opposite DAC channel's negative
reconstruction filter terminal as well as bridging the HPL and LOR
output amplifier stages for mono differential configurations:
- AIC32X4_HPRROUTE bit 4: Left DAC negative terminal to HPR
- AIC32X4_HPRROUTE bit 0: HPL output driver to HPR
- AIC32X4_LOLROUTE bit 4: Right DAC negative terminal to LOL
- AIC32X4_LOLROUTE bit 0: LOR output driver to LOL

Add the corresponding DAPM mixer controls and routes, sourcing HPL/LOR
bridging from the HPL Power and LOR Power PGA widgets so the upstream
driver stage is powered when bridged.

Signed-off-by: Gianfranco Mariotti <gianfranco.mariotti94@xxxxxxxxx>
---
sound/soc/codecs/tlv320aic32x4.c | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 875d934bb5c8d..f39856d0b1f19 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -323,12 +323,16 @@ static const struct snd_kcontrol_new hpl_output_mixer_controls[] = {
};

static const struct snd_kcontrol_new hpr_output_mixer_controls[] = {
+ SOC_DAPM_SINGLE("L_DAC Switch", AIC32X4_HPRROUTE, 4, 1, 0),
SOC_DAPM_SINGLE("R_DAC Switch", AIC32X4_HPRROUTE, 3, 1, 0),
SOC_DAPM_SINGLE("IN1_R Switch", AIC32X4_HPRROUTE, 2, 1, 0),
+ SOC_DAPM_SINGLE("HPL Switch", AIC32X4_HPRROUTE, 0, 1, 0),
};

static const struct snd_kcontrol_new lol_output_mixer_controls[] = {
+ SOC_DAPM_SINGLE("R_DAC Switch", AIC32X4_LOLROUTE, 4, 1, 0),
SOC_DAPM_SINGLE("L_DAC Switch", AIC32X4_LOLROUTE, 3, 1, 0),
+ SOC_DAPM_SINGLE("LOR Switch", AIC32X4_LOLROUTE, 0, 1, 0),
};

static const struct snd_kcontrol_new lor_output_mixer_controls[] = {
@@ -495,14 +499,18 @@ static const struct snd_soc_dapm_route aic32x4_dapm_routes[] = {
{"HPL Power", NULL, "HPL Output Mixer"},
{"HPL", NULL, "HPL Power"},

+ {"LOL Output Mixer", "R_DAC Switch", "Right DAC"},
{"LOL Output Mixer", "L_DAC Switch", "Left DAC"},
+ {"LOL Output Mixer", "LOR Switch", "LOR Power"},

{"LOL Power", NULL, "LOL Output Mixer"},
{"LOL", NULL, "LOL Power"},

/* Right Output */
+ {"HPR Output Mixer", "L_DAC Switch", "Left DAC"},
{"HPR Output Mixer", "R_DAC Switch", "Right DAC"},
{"HPR Output Mixer", "IN1_R Switch", "IN1_R"},
+ {"HPR Output Mixer", "HPL Switch", "HPL Power"},

{"HPR Power", NULL, "HPR Output Mixer"},
{"HPR", NULL, "HPR Power"},
--
2.25.1