[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220512074359.446999-1-tommaso.merciai@amarulasolutions.com>
Date: Thu, 12 May 2022 09:43:58 +0200
From: Tommaso Merciai <tommaso.merciai@...rulasolutions.com>
To: unlisted-recipients:; (no To-header on input)
Cc: tommaso.merciai@...rulasolutions.com,
linux-amarula@...rulasolutions.com, linuxfancy@...glegroups.com,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] ASoC: max98088: add support for reg_4a_cfg_bypass reg
Add mixer controls support for M98088_REG_4A_CFG_BYPASS register
References:
- https://datasheets.maximintegrated.com/en/ds/MAX98089.pdf p71, p113
Signed-off-by: Tommaso Merciai <tommaso.merciai@...rulasolutions.com>
---
sound/soc/codecs/max98088.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 429717d4ac5a..f8ec2f164e08 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -486,6 +486,11 @@ static const struct snd_kcontrol_new max98088_snd_controls[] = {
SOC_SINGLE("EQ1 Switch", M98088_REG_49_CFG_LEVEL, 0, 1, 0),
SOC_SINGLE("EQ2 Switch", M98088_REG_49_CFG_LEVEL, 1, 1, 0),
+ SOC_SINGLE("SPK Bypass Switch", M98088_REG_4A_CFG_BYPASS, 0, 1, 0),
+ SOC_SINGLE("REC Bypass Switch", M98088_REG_4A_CFG_BYPASS, 1, 1, 0),
+ SOC_SINGLE("MIC2 Bypass Switch", M98088_REG_4A_CFG_BYPASS, 4, 1, 0),
+ SOC_SINGLE("INA Bypass Switch", M98088_REG_4A_CFG_BYPASS, 7, 1, 0),
+
SOC_ENUM("EX Limiter Mode", max98088_exmode_enum),
SOC_ENUM("EX Limiter Threshold", max98088_ex_thresh_enum),
--
2.25.1
Powered by blists - more mailing lists