summaryrefslogtreecommitdiff
path: root/drivers/headset_observe/rk_headset_irq_hook_adc.c
diff options
context:
space:
mode:
authoryj <yangjie@rock-chips.com>2014-03-28 10:49:58 +0800
committeryj <yangjie@rock-chips.com>2014-03-28 10:49:58 +0800
commit973b816b8e7ecd803c4fbaf99184fd763af96615 (patch)
treec11f27ccef3d2ff4d6cb0b19fd016000990f7346 /drivers/headset_observe/rk_headset_irq_hook_adc.c
parent6eb29b7d6e3550cfbee82c2083b3dcd2bb2f1e5a (diff)
headset: sdk enable nokia headphone
Diffstat (limited to 'drivers/headset_observe/rk_headset_irq_hook_adc.c')
-rwxr-xr-xdrivers/headset_observe/rk_headset_irq_hook_adc.c6
1 files changed, 3 insertions, 3 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)