summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra_wm8903.c
diff options
context:
space:
mode:
authorSumit Bhattacharya <sumitb@nvidia.com>2011-12-05 18:51:58 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 18:02:20 +0530
commit78983fd6b93017ef9936362b16760e8b00c68a6e (patch)
tree77abf8abc170407221fba002a34dddeb3f18515b /sound/soc/tegra/tegra_wm8903.c
parentfb2a929f68bdec7079131bffbac0770e2cf29fd3 (diff)
ASoC: Tegra: WAR to avoid incorrect mic detection event
When 3-pin pin is interted in cardhu headset port mic short interrupts get asserted which also triggers mic detection interrupt. As a result ALSA detects presence of mic mistakenly. For cardhu register WM8903 mic short event for mic detection so that mic detection interrupt generated during mic short event gets cancelled. Bug 906524 Change-Id: Icfd9d9d26d171b075eac6e76f35227e43c928e0e Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/68229 Reviewed-by: Scott Peterson <speterson@nvidia.com> Tested-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound/soc/tegra/tegra_wm8903.c')
-rw-r--r--sound/soc/tegra/tegra_wm8903.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index f9b434194e82..67cb126876f7 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -632,7 +632,7 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
&tegra_wm8903_jack_detect_nb);
#endif
wm8903_mic_detect(codec, &tegra_wm8903_mic_jack, SND_JACK_MICROPHONE,
- 0);
+ machine_is_cardhu() ? SND_JACK_MICROPHONE : 0);
snd_soc_dapm_force_enable_pin(dapm, "Mic Bias");