ASoC: tegra: Add control for the Mic Jack pin
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 12 Feb 2015 08:41:57 +0000 (09:41 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Mar 2015 17:26:28 +0000 (17:26 +0000)
So userspace can enable and disable the external microphone.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra_max98090.c

index 29ea87cd852efc93382bbc97bec215ca6425f7ca..1f20c2c40a5af0e1dbe35bb1fff049b44547616a 100644 (file)
@@ -139,6 +139,7 @@ static const struct snd_soc_dapm_widget tegra_max98090_dapm_widgets[] = {
 static const struct snd_kcontrol_new tegra_max98090_controls[] = {
        SOC_DAPM_PIN_SWITCH("Headphones"),
        SOC_DAPM_PIN_SWITCH("Speakers"),
+       SOC_DAPM_PIN_SWITCH("Mic Jack"),
        SOC_DAPM_PIN_SWITCH("Int Mic"),
 };