diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2021-02-11 18:07:17 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2021-02-17 17:44:31 +0100 |
commit | 301f1014c448d40b6bad2a8c27b9b3196910c8bf (patch) | |
tree | bb13156b730ce22a737749bb6bd8abe8ee027887 | |
parent | a7b9ba9ea7382f969d4d7315e78725b9e410a520 (diff) |
ASoC: nau8822: export right speaker inversion
This control inverts the signal fed to the right amplifier.
This allows to connect one loadspeaker to the two speaker amplifiers
in a bridge-tied load configuration getting higher output power.
Related-to: ELB-3503
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | sound/soc/codecs/nau8822.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8822.c b/sound/soc/codecs/nau8822.c index 78db3bd0b3bc..a57e7ea0c4fe 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), |