From 3493ae41a381ce3323e071daa051a246f6bc0c02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=82=B1=E5=BB=BA=E6=96=8C?= Date: Fri, 26 Oct 2012 11:16:02 +0800 Subject: [PATCH] rk_headset : modify key down key up value --- drivers/headset_observe/rk_headset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/headset_observe/rk_headset.c b/drivers/headset_observe/rk_headset.c index 2f09e35977ab..a2f23e5ab285 100755 --- a/drivers/headset_observe/rk_headset.c +++ b/drivers/headset_observe/rk_headset.c @@ -56,8 +56,8 @@ #define HEADSET_IN 1 #define HEADSET_OUT 0 -#define HOOK_DOWN 0 -#define HOOK_UP 1 +#define HOOK_DOWN 1 +#define HOOK_UP 0 #define enable 1 #define disable 0 @@ -244,7 +244,7 @@ static void Hook_work(struct work_struct *work) DBG("old_status == headset_info->hook_status\n"); goto RE_ERROR; } - DBG("Hook_work -- level = %d hook status is %s\n",level,headset_info->hook_status?"key up":"key down"); + DBG("Hook_work -- level = %d hook status is %s\n",level,headset_info->hook_status?"key down":"key dup"); if(headset_info->hook_status == HOOK_DOWN) { if(pdata->Hook_down_type == HOOK_DOWN_HIGH) -- 2.34.1