]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: tegra: Add sink for the internal mic to tegra_max98090
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 12 Feb 2015 08:41:56 +0000 (09:41 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Mar 2015 17:26:28 +0000 (17:26 +0000)
Also adds a control for the pin of the internal mic, so userspace can
apply policy when the state of the external mic jack changes.

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

index c949abc2992f5fd1d8c2e1fcb2eb5a75521037a6..c3495beba35841773cd1ec0c7d3efe1d952d22c4 100644 (file)
@@ -18,6 +18,7 @@ Required properties:
   * Headphones
   * Speakers
   * Mic Jack
+  * Int Mic
 
 - nvidia,i2s-controller : The phandle of the Tegra I2S controller that's
   connected to the CODEC.
index 8df71a436f11998e40dd62f2c0c32594f378cc16..29ea87cd852efc93382bbc97bec215ca6425f7ca 100644 (file)
@@ -133,11 +133,13 @@ static const struct snd_soc_dapm_widget tegra_max98090_dapm_widgets[] = {
        SND_SOC_DAPM_HP("Headphones", NULL),
        SND_SOC_DAPM_SPK("Speakers", NULL),
        SND_SOC_DAPM_MIC("Mic Jack", NULL),
+       SND_SOC_DAPM_MIC("Int Mic", NULL),
 };
 
 static const struct snd_kcontrol_new tegra_max98090_controls[] = {
        SOC_DAPM_PIN_SWITCH("Headphones"),
        SOC_DAPM_PIN_SWITCH("Speakers"),
+       SOC_DAPM_PIN_SWITCH("Int Mic"),
 };
 
 static int tegra_max98090_asoc_init(struct snd_soc_pcm_runtime *rtd)