#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)
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);
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);