projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63fdd0
)
CHROMIUM: ASoC: max98088 - expose digital mic enable switches.
author
Dylan Reid
<dgreid@chromium.org>
Fri, 29 Mar 2013 22:42:06 +0000
(15:42 -0700)
committer
ChromeBot
<chrome-bot@google.com>
Sat, 30 Mar 2013 05:37:09 +0000
(22:37 -0700)
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 <dgreid@chromium.org>
Change-Id: I8ed493ce9aea4f94f4feda23172e2e3251e27b51
Reviewed-on: https://gerrit.chromium.org/gerrit/46904
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
sound/soc/codecs/max98088.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/max98088.c
b/sound/soc/codecs/max98088.c
index
281fc44
..
2f37918
100644
(file)
--- 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),