summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana-jack.c
diff options
context:
space:
mode:
authorChao Jiang <chaoj@nvidia.com>2011-03-08 18:43:45 +0900
committerVarun Colbert <vcolbert@nvidia.com>2011-03-14 17:40:39 -0800
commit0ea635e64cc77747e9aeedeb294c81a521f31e4a (patch)
tree499c17c4c1115102db12415be20cad74c39bc754 /arch/arm/mach-tegra/board-ventana-jack.c
parentf7ccf6cae50ef4fa40ff4a8fa93d290c86c67a8c (diff)
ARM: ventana: Support mic jack detection
Configured wm8903 codec on Ventana board to enalbe mic jack detection. Instead of interrupt, set GPIO4 as a generic gpio pin to output Mic Bias Current Detection result. fixes bug 766757 Change-Id: I9062d06c594dc9f9b2eea76eaefc83c26107117f Reviewed-on: http://git-master/r/22038 Reviewed-by: Chao Jiang <chaoj@nvidia.com> Tested-by: Chao Jiang <chaoj@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-jack.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana-jack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-jack.c b/arch/arm/mach-tegra/board-ventana-jack.c
index 7d8d233f5155..375b3970c26b 100644
--- a/arch/arm/mach-tegra/board-ventana-jack.c
+++ b/arch/arm/mach-tegra/board-ventana-jack.c
@@ -32,6 +32,7 @@ static struct tegra_wired_jack_conf ventana_wr_jack_conf = {
.en_mic_ext = TEGRA_GPIO_PX1,
.en_mic_int = TEGRA_GPIO_PX0,
.en_spkr = WM8903_GP3,
+ .cdc_irq = TEGRA_GPIO_PX3,
};
static struct platform_device ventana_hs_jack_device = {
@@ -47,6 +48,9 @@ int __init ventana_wired_jack_init(void)
int ret;
tegra_gpio_enable(ventana_wr_jack_conf.hp_det_n);
+ tegra_gpio_enable(ventana_wr_jack_conf.en_mic_int);
+ tegra_gpio_enable(ventana_wr_jack_conf.en_mic_ext);
+ tegra_gpio_enable(ventana_wr_jack_conf.cdc_irq);
ret = platform_device_register(&ventana_hs_jack_device);
return ret;