headset: sdk enable nokia headphone
authoryj <yangjie@rock-chips.com>
Fri, 28 Mar 2014 02:49:58 +0000 (10:49 +0800)
committeryj <yangjie@rock-chips.com>
Fri, 28 Mar 2014 02:49:58 +0000 (10:49 +0800)
drivers/headset_observe/rk_headset_irq_hook_adc.c
drivers/headset_observe/rockchip_headset_core.c

index 71ef29dadcbb210ad5f0eb1c829ce9b70a19db43..9587eff96fa3f2943208edabb64d1c798baf8ae2 100755 (executable)
 #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)
index 38b7af3e79ad92f89ec08a06a720266dc5ca987f..0ec6708ab743e64b5dc00c65140cd49d7b6bb0a0 100755 (executable)
@@ -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);