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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Max Krummenacher <max.krummenacher@xxxxxxxxxxx>

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@xxxxxxxxxxx>
Signed-off-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
---
 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




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux