diff options
author | yj <yangjie@rock-chips.com> | 2014-03-28 10:49:58 +0800 |
---|---|---|
committer | yj <yangjie@rock-chips.com> | 2014-03-28 10:49:58 +0800 |
commit | 973b816b8e7ecd803c4fbaf99184fd763af96615 (patch) | |
tree | c11f27ccef3d2ff4d6cb0b19fd016000990f7346 /drivers/headset_observe | |
parent | 6eb29b7d6e3550cfbee82c2083b3dcd2bb2f1e5a (diff) |
headset: sdk enable nokia headphone
Diffstat (limited to 'drivers/headset_observe')
-rwxr-xr-x | drivers/headset_observe/rk_headset_irq_hook_adc.c | 6 | ||||
-rwxr-xr-x | drivers/headset_observe/rockchip_headset_core.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/headset_observe/rk_headset_irq_hook_adc.c b/drivers/headset_observe/rk_headset_irq_hook_adc.c index 71ef29dadcbb..9587eff96fa3 100755 --- a/drivers/headset_observe/rk_headset_irq_hook_adc.c +++ b/drivers/headset_observe/rk_headset_irq_hook_adc.c @@ -43,15 +43,15 @@ #include "rk_headset.h" /* Debug */ -#if 1 +#if 0 #define DBG(x...) printk(x) #else #define DBG(x...) do { } while (0) #endif #define HOOK_ADC_SAMPLE_TIME 50 -#define HOOK_LEVEL_HIGH 50 //1V*1024/2.5 -#define HOOK_LEVEL_LOW 5 //0.5V*1024/2.5 +#define HOOK_LEVEL_HIGH 410 //1V*1024/2.5 +#define HOOK_LEVEL_LOW 204 //0.5V*1024/2.5 #define HOOK_DEFAULT_VAL 1024 #define BIT_HEADSET (1 << 0) diff --git a/drivers/headset_observe/rockchip_headset_core.c b/drivers/headset_observe/rockchip_headset_core.c index 38b7af3e79ad..0ec6708ab743 100755 --- a/drivers/headset_observe/rockchip_headset_core.c +++ b/drivers/headset_observe/rockchip_headset_core.c @@ -158,7 +158,6 @@ static int rockchip_headset_remove(struct platform_device *pdev) static int rockchip_headset_suspend(struct platform_device *pdev, pm_message_t state) { - DBG("%s----%d\n",__FUNCTION__,__LINE__); if(pdata_info->chan != 0) { return rk_headset_adc_suspend(pdev,state); @@ -168,7 +167,6 @@ static int rockchip_headset_suspend(struct platform_device *pdev, pm_message_t s static int rockchip_headset_resume(struct platform_device *pdev) { - printk("%s----%d\n",__FUNCTION__,__LINE__); if(pdata_info->chan != 0) { return rk_headset_adc_resume(pdev); |