[PATCH v1] ASoC: nau8822: export right speaker inversion

Francesco Dolcini francesco.dolcini at toradex.com
Mon Feb 7 16:32:29 CET 2022


From: Max Krummenacher <max.krummenacher at toradex.com>

This control inverts the signal fed to the right amplifier.
This allows to connect one loudspeaker to the two speaker amplifiers
in a bridge-tied load configuration getting higher output power.

Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
---
 sound/soc/codecs/nau8822.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/nau8822.c b/sound/soc/codecs/nau8822.c
index 58123390c7a3..bf1155903421 100644
--- a/sound/soc/codecs/nau8822.c
+++ b/sound/soc/codecs/nau8822.c
@@ -351,6 +351,8 @@ static const struct snd_kcontrol_new nau8822_snd_controls[] = {
 		NAU8822_REG_LHP_VOLUME,
 		NAU8822_REG_RHP_VOLUME,	0, 63, 0, spk_tlv),
 
+	SOC_SINGLE("Speaker RInversion Switch",
+		NAU8822_REG_RIGHT_SPEAKER_CONTROL, 4, 1, 0),
 	SOC_DOUBLE_R("Speaker ZC Switch",
 		NAU8822_REG_LSPKOUT_VOLUME,
 		NAU8822_REG_RSPKOUT_VOLUME, 7, 1, 0),
-- 
2.25.1



More information about the Alsa-devel mailing list