aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9712.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-05 08:05:11 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-05 08:05:11 -0400
commit75d8f2931a803b803cb4a850448460475c20f30b (patch)
tree9853b9084fa55609c8e4abbc1763bc500e05da50 /sound/soc/codecs/wm9712.c
parentffb690d5aa36d38d7bed7579e3f07b84ff6b3a08 (diff)
parente93c7d1bc350189511d32cec2f0af79c30e7fa47 (diff)
Merge branch 'asoc-omap' into for-3.7
Diffstat (limited to 'sound/soc/codecs/wm9712.c')
-rw-r--r--sound/soc/codecs/wm9712.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index 6aa1bf8c6897..1992a6295a16 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -149,7 +149,7 @@ SOC_SINGLE("Treble Volume", AC97_MASTER_TONE, 0, 15, 1),
149 149
150SOC_SINGLE("Capture Switch", AC97_REC_GAIN, 15, 1, 1), 150SOC_SINGLE("Capture Switch", AC97_REC_GAIN, 15, 1, 1),
151SOC_ENUM("Capture Volume Steps", wm9712_enum[6]), 151SOC_ENUM("Capture Volume Steps", wm9712_enum[6]),
152SOC_DOUBLE("Capture Volume", AC97_REC_GAIN, 8, 0, 63, 1), 152SOC_DOUBLE("Capture Volume", AC97_REC_GAIN, 8, 0, 63, 0),
153SOC_SINGLE("Capture ZC Switch", AC97_REC_GAIN, 7, 1, 0), 153SOC_SINGLE("Capture ZC Switch", AC97_REC_GAIN, 7, 1, 0),
154 154
155SOC_SINGLE_TLV("Mic 1 Volume", AC97_MIC, 8, 31, 1, main_tlv), 155SOC_SINGLE_TLV("Mic 1 Volume", AC97_MIC, 8, 31, 1, main_tlv),
@@ -273,7 +273,7 @@ SOC_DAPM_ENUM("Route", wm9712_enum[9]);
273 273
274/* Mic select */ 274/* Mic select */
275static const struct snd_kcontrol_new wm9712_mic_src_controls = 275static const struct snd_kcontrol_new wm9712_mic_src_controls =
276SOC_DAPM_ENUM("Route", wm9712_enum[7]); 276SOC_DAPM_ENUM("Mic Source Select", wm9712_enum[7]);
277 277
278/* diff select */ 278/* diff select */
279static const struct snd_kcontrol_new wm9712_diff_sel_controls = 279static const struct snd_kcontrol_new wm9712_diff_sel_controls =
@@ -292,7 +292,9 @@ SND_SOC_DAPM_MUX("Left Capture Select", SND_SOC_NOPM, 0, 0,
292 &wm9712_capture_selectl_controls), 292 &wm9712_capture_selectl_controls),
293SND_SOC_DAPM_MUX("Right Capture Select", SND_SOC_NOPM, 0, 0, 293SND_SOC_DAPM_MUX("Right Capture Select", SND_SOC_NOPM, 0, 0,
294 &wm9712_capture_selectr_controls), 294 &wm9712_capture_selectr_controls),
295SND_SOC_DAPM_MUX("Mic Select Source", SND_SOC_NOPM, 0, 0, 295SND_SOC_DAPM_MUX("Left Mic Select Source", SND_SOC_NOPM, 0, 0,
296 &wm9712_mic_src_controls),
297SND_SOC_DAPM_MUX("Right Mic Select Source", SND_SOC_NOPM, 0, 0,
296 &wm9712_mic_src_controls), 298 &wm9712_mic_src_controls),
297SND_SOC_DAPM_MUX("Differential Source", SND_SOC_NOPM, 0, 0, 299SND_SOC_DAPM_MUX("Differential Source", SND_SOC_NOPM, 0, 0,
298 &wm9712_diff_sel_controls), 300 &wm9712_diff_sel_controls),
@@ -320,6 +322,7 @@ SND_SOC_DAPM_PGA("Out 3 PGA", AC97_INT_PAGING, 5, 1, NULL, 0),
320SND_SOC_DAPM_PGA("Line PGA", AC97_INT_PAGING, 2, 1, NULL, 0), 322SND_SOC_DAPM_PGA("Line PGA", AC97_INT_PAGING, 2, 1, NULL, 0),
321SND_SOC_DAPM_PGA("Phone PGA", AC97_INT_PAGING, 1, 1, NULL, 0), 323SND_SOC_DAPM_PGA("Phone PGA", AC97_INT_PAGING, 1, 1, NULL, 0),
322SND_SOC_DAPM_PGA("Mic PGA", AC97_INT_PAGING, 0, 1, NULL, 0), 324SND_SOC_DAPM_PGA("Mic PGA", AC97_INT_PAGING, 0, 1, NULL, 0),
325SND_SOC_DAPM_PGA("Differential Mic", SND_SOC_NOPM, 0, 0, NULL, 0),
323SND_SOC_DAPM_MICBIAS("Mic Bias", AC97_INT_PAGING, 10, 1), 326SND_SOC_DAPM_MICBIAS("Mic Bias", AC97_INT_PAGING, 10, 1),
324SND_SOC_DAPM_OUTPUT("MONOOUT"), 327SND_SOC_DAPM_OUTPUT("MONOOUT"),
325SND_SOC_DAPM_OUTPUT("HPOUTL"), 328SND_SOC_DAPM_OUTPUT("HPOUTL"),
@@ -380,6 +383,18 @@ static const struct snd_soc_dapm_route wm9712_audio_map[] = {
380 {"Mic PGA", NULL, "MIC1"}, 383 {"Mic PGA", NULL, "MIC1"},
381 {"Mic PGA", NULL, "MIC2"}, 384 {"Mic PGA", NULL, "MIC2"},
382 385
386 /* microphones */
387 {"Differential Mic", NULL, "MIC1"},
388 {"Differential Mic", NULL, "MIC2"},
389 {"Left Mic Select Source", "Mic 1", "MIC1"},
390 {"Left Mic Select Source", "Mic 2", "MIC2"},
391 {"Left Mic Select Source", "Stereo", "MIC1"},
392 {"Left Mic Select Source", "Differential", "Differential Mic"},
393 {"Right Mic Select Source", "Mic 1", "MIC1"},
394 {"Right Mic Select Source", "Mic 2", "MIC2"},
395 {"Right Mic Select Source", "Stereo", "MIC2"},
396 {"Right Mic Select Source", "Differential", "Differential Mic"},
397
383 /* left capture selector */ 398 /* left capture selector */
384 {"Left Capture Select", "Mic", "MIC1"}, 399 {"Left Capture Select", "Mic", "MIC1"},
385 {"Left Capture Select", "Speaker Mixer", "Speaker Mixer"}, 400 {"Left Capture Select", "Speaker Mixer", "Speaker Mixer"},