diff options
| -rw-r--r-- | sound/soc/codecs/wm9712.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index f16fb361a4eb..fd74b8843d34 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
| @@ -272,7 +272,7 @@ SOC_DAPM_ENUM("Route", wm9712_enum[9]); | |||
| 272 | 272 | ||
| 273 | /* Mic select */ | 273 | /* Mic select */ |
| 274 | static const struct snd_kcontrol_new wm9712_mic_src_controls = | 274 | static const struct snd_kcontrol_new wm9712_mic_src_controls = |
| 275 | SOC_DAPM_ENUM("Route", wm9712_enum[7]); | 275 | SOC_DAPM_ENUM("Mic Source Select", wm9712_enum[7]); |
| 276 | 276 | ||
| 277 | /* diff select */ | 277 | /* diff select */ |
| 278 | static const struct snd_kcontrol_new wm9712_diff_sel_controls = | 278 | static const struct snd_kcontrol_new wm9712_diff_sel_controls = |
| @@ -291,7 +291,9 @@ SND_SOC_DAPM_MUX("Left Capture Select", SND_SOC_NOPM, 0, 0, | |||
| 291 | &wm9712_capture_selectl_controls), | 291 | &wm9712_capture_selectl_controls), |
| 292 | SND_SOC_DAPM_MUX("Right Capture Select", SND_SOC_NOPM, 0, 0, | 292 | SND_SOC_DAPM_MUX("Right Capture Select", SND_SOC_NOPM, 0, 0, |
| 293 | &wm9712_capture_selectr_controls), | 293 | &wm9712_capture_selectr_controls), |
| 294 | SND_SOC_DAPM_MUX("Mic Select Source", SND_SOC_NOPM, 0, 0, | 294 | SND_SOC_DAPM_MUX("Left Mic Select Source", SND_SOC_NOPM, 0, 0, |
| 295 | &wm9712_mic_src_controls), | ||
| 296 | SND_SOC_DAPM_MUX("Right Mic Select Source", SND_SOC_NOPM, 0, 0, | ||
| 295 | &wm9712_mic_src_controls), | 297 | &wm9712_mic_src_controls), |
| 296 | SND_SOC_DAPM_MUX("Differential Source", SND_SOC_NOPM, 0, 0, | 298 | SND_SOC_DAPM_MUX("Differential Source", SND_SOC_NOPM, 0, 0, |
| 297 | &wm9712_diff_sel_controls), | 299 | &wm9712_diff_sel_controls), |
| @@ -319,6 +321,7 @@ SND_SOC_DAPM_PGA("Out 3 PGA", AC97_INT_PAGING, 5, 1, NULL, 0), | |||
| 319 | SND_SOC_DAPM_PGA("Line PGA", AC97_INT_PAGING, 2, 1, NULL, 0), | 321 | SND_SOC_DAPM_PGA("Line PGA", AC97_INT_PAGING, 2, 1, NULL, 0), |
| 320 | SND_SOC_DAPM_PGA("Phone PGA", AC97_INT_PAGING, 1, 1, NULL, 0), | 322 | SND_SOC_DAPM_PGA("Phone PGA", AC97_INT_PAGING, 1, 1, NULL, 0), |
| 321 | SND_SOC_DAPM_PGA("Mic PGA", AC97_INT_PAGING, 0, 1, NULL, 0), | 323 | SND_SOC_DAPM_PGA("Mic PGA", AC97_INT_PAGING, 0, 1, NULL, 0), |
| 324 | SND_SOC_DAPM_PGA("Differential Mic", SND_SOC_NOPM, 0, 0, NULL, 0), | ||
| 322 | SND_SOC_DAPM_MICBIAS("Mic Bias", AC97_INT_PAGING, 10, 1), | 325 | SND_SOC_DAPM_MICBIAS("Mic Bias", AC97_INT_PAGING, 10, 1), |
| 323 | SND_SOC_DAPM_OUTPUT("MONOOUT"), | 326 | SND_SOC_DAPM_OUTPUT("MONOOUT"), |
| 324 | SND_SOC_DAPM_OUTPUT("HPOUTL"), | 327 | SND_SOC_DAPM_OUTPUT("HPOUTL"), |
| @@ -379,6 +382,18 @@ static const struct snd_soc_dapm_route wm9712_audio_map[] = { | |||
| 379 | {"Mic PGA", NULL, "MIC1"}, | 382 | {"Mic PGA", NULL, "MIC1"}, |
| 380 | {"Mic PGA", NULL, "MIC2"}, | 383 | {"Mic PGA", NULL, "MIC2"}, |
| 381 | 384 | ||
| 385 | /* microphones */ | ||
| 386 | {"Differential Mic", NULL, "MIC1"}, | ||
| 387 | {"Differential Mic", NULL, "MIC2"}, | ||
| 388 | {"Left Mic Select Source", "Mic 1", "MIC1"}, | ||
| 389 | {"Left Mic Select Source", "Mic 2", "MIC2"}, | ||
| 390 | {"Left Mic Select Source", "Stereo", "MIC1"}, | ||
| 391 | {"Left Mic Select Source", "Differential", "Differential Mic"}, | ||
| 392 | {"Right Mic Select Source", "Mic 1", "MIC1"}, | ||
| 393 | {"Right Mic Select Source", "Mic 2", "MIC2"}, | ||
| 394 | {"Right Mic Select Source", "Stereo", "MIC2"}, | ||
| 395 | {"Right Mic Select Source", "Differential", "Differential Mic"}, | ||
| 396 | |||
| 382 | /* left capture selector */ | 397 | /* left capture selector */ |
| 383 | {"Left Capture Select", "Mic", "MIC1"}, | 398 | {"Left Capture Select", "Mic", "MIC1"}, |
| 384 | {"Left Capture Select", "Speaker Mixer", "Speaker Mixer"}, | 399 | {"Left Capture Select", "Speaker Mixer", "Speaker Mixer"}, |
