]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: tegra: support a Mic Jack in the Tegra+RT5640 machine driver
authorStephen Warren <swarren@nvidia.com>
Wed, 14 Aug 2013 20:26:29 +0000 (14:26 -0600)
committerMark Brown <broonie@linaro.org>
Thu, 15 Aug 2013 10:08:30 +0000 (11:08 +0100)
Add a Mic Jack widget to the Tegra+RT5640 machine driver, and document
this in the DT binding. This enables the DT to include the Mic Jack in
the audio routing table, and hence enables capture of audio, in addition
to the previously-working playback.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5640.txt
sound/soc/tegra/tegra_rt5640.c

index cba4f88bd9f00391cfe54e483fe4d37da0ea1159..dc6224994d69d97f31614a308d71ba6cf2c9784c 100644 (file)
@@ -16,6 +16,7 @@ Required properties:
 
   * Headphones
   * Speakers
+  * Mic Jack
 
 - nvidia,i2s-controller : The phandle of the Tegra I2S controller that's
   connected to the CODEC.
index 08794f915a9433a1fdaa91842c74c16279e7f9f2..4511c5a875ecd8567e58c3f62496ab8e1076473f 100644 (file)
@@ -99,6 +99,7 @@ static struct snd_soc_jack_gpio tegra_rt5640_hp_jack_gpio = {
 static const struct snd_soc_dapm_widget tegra_rt5640_dapm_widgets[] = {
        SND_SOC_DAPM_HP("Headphones", NULL),
        SND_SOC_DAPM_SPK("Speakers", NULL),
+       SND_SOC_DAPM_MIC("Mic Jack", NULL),
 };
 
 static const struct snd_kcontrol_new tegra_rt5640_controls[] = {