[tegra ALSA] Enable mic jack detection
authorChao Jiang <chaoj@nvidia.com>
Tue, 8 Mar 2011 07:02:20 +0000 (16:02 +0900)
committerVarun Colbert <vcolbert@nvidia.com>
Tue, 15 Mar 2011 01:38:41 +0000 (17:38 -0800)
commitf7ccf6cae50ef4fa40ff4a8fa93d290c86c67a8c
treeee3ed63e3caf0119f5772b0b4ea55cf41b911091
parentac6c67d1089a31107cc5838ea766497dfa968914
[tegra ALSA] Enable mic jack detection

Added support on Mic jack detection on Tegra.

- External mic jack detection could be probed by trigger an interrupt
  via specific gpio or pull-up a generic gpio pin. The patch enabled the
  later option.

- Tegra reference boards have gpio to switch external mic and internal
  mic. The switching is done in the patch automatically once jack
  happened.

fixes bug 766757

Change-Id: If530f237d4564d1de6c019b206910f2a0ffe4163
Reviewed-on: http://git-master/r/22033
Reviewed-by: Chao Jiang <chaoj@nvidia.com>
Tested-by: Chao Jiang <chaoj@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
arch/arm/mach-tegra/include/mach/audio.h
sound/soc/tegra/tegra_soc.h
sound/soc/tegra/tegra_soc_controls.c
sound/soc/tegra/tegra_wired_jack.c