summaryrefslogtreecommitdiff
path: root/drivers/headset_observe/rk_headset_irq_hook_adc.c
diff options
context:
space:
mode:
author宋秀杰 <sxj@rock-chips.com>2012-09-18 22:24:48 +0800
committer宋秀杰 <sxj@rock-chips.com>2012-09-18 22:24:48 +0800
commit025a3457e83759bc7b092c41be9c78d167bd5f2b (patch)
tree5b31fdc715fdfad4c7f0ffdb9b1961f8cd72d550 /drivers/headset_observe/rk_headset_irq_hook_adc.c
parent4e84efeb44022ad6662cd8edbd979dcac4ff2247 (diff)
phonepad: solve some issue when codec select rt3224, and change version to V1.2.0.
Diffstat (limited to 'drivers/headset_observe/rk_headset_irq_hook_adc.c')
-rw-r--r--[-rwxr-xr-x]drivers/headset_observe/rk_headset_irq_hook_adc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/headset_observe/rk_headset_irq_hook_adc.c b/drivers/headset_observe/rk_headset_irq_hook_adc.c
index e954e264d56c..e254b8041706 100755..100644
--- a/drivers/headset_observe/rk_headset_irq_hook_adc.c
+++ b/drivers/headset_observe/rk_headset_irq_hook_adc.c
@@ -78,7 +78,7 @@
extern int wm8994_headset_mic_detect(bool headset_status);
#endif
-#ifdef CONFIG_SND_SOC_RT3261
+#if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
extern int rt3261_headset_mic_detect(int jack_insert);
#endif
@@ -200,7 +200,7 @@ static irqreturn_t headset_interrupt(int irq, void *dev_id)
#ifdef CONFIG_SND_SOC_WM8994
wm8994_headset_mic_detect(true);
#endif
- #ifdef CONFIG_SND_SOC_RT3261
+ #if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
rt3261_headset_mic_detect(true);
#endif
//mdelay(400);
@@ -211,7 +211,7 @@ static irqreturn_t headset_interrupt(int irq, void *dev_id)
#ifdef CONFIG_SND_SOC_WM8994
wm8994_headset_mic_detect(false);
#endif
- #ifdef CONFIG_SND_SOC_RT3261
+ #if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
rt3261_headset_mic_detect(false);
#endif
printk("headset->isMic = %d\n",headset_info->isMic);
@@ -264,7 +264,7 @@ static irqreturn_t headset_interrupt(int irq, void *dev_id)
//rt5625_headset_mic_detect(false);
wm8994_headset_mic_detect(false);
#endif
- #ifdef CONFIG_SND_SOC_RT3261
+ #if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
rt3261_headset_mic_detect(false);
#endif
}