From d197879f1c39d6af4f5f25fd067c959637d8594f Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Fri, 29 Mar 2013 15:42:06 -0700 Subject: [PATCH] CHROMIUM: ASoC: max98088 - expose digital mic enable switches. Add a control for enable right and left digital mic. This control routes the digital mic input through the ADC. It must be disabled for analog input to work. BUG=chrome-os-partner:18454 TEST=toggle switches, see changes with i2cdump. Signed-off-by: Dylan Reid Change-Id: I8ed493ce9aea4f94f4feda23172e2e3251e27b51 Reviewed-on: https://gerrit.chromium.org/gerrit/46904 Reviewed-by: Vincent Palatin --- sound/soc/codecs/max98088.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 281fc445447b..2f379181428d 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c @@ -794,6 +794,9 @@ static const struct snd_kcontrol_new max98088_snd_controls[] = { SOC_SINGLE("ADCL Boost Volume", M98088_REG_33_LVL_ADC_L, 4, 3, 0), SOC_SINGLE("ADCR Boost Volume", M98088_REG_34_LVL_ADC_R, 4, 3, 0), + SOC_SINGLE("DIGMICR Switch", M98088_REG_48_CFG_MIC, 4, 1, 0), + SOC_SINGLE("DIGMICL Switch", M98088_REG_48_CFG_MIC, 5, 1, 0), + SOC_SINGLE("EQ1 Switch", M98088_REG_49_CFG_LEVEL, 0, 1, 0), SOC_SINGLE("EQ2 Switch", M98088_REG_49_CFG_LEVEL, 1, 1, 0), -- 2.20.1