]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
intel_sst: intelmid_v2_control: correct jack event type
authorAndy CH Lin <andy_ch_lin@wistron.com>
Tue, 3 May 2011 16:35:51 +0000 (17:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 19:58:44 +0000 (12:58 -0700)
Correct event type of audio jack while receiving long press event.

Signed-off-by: Andy CH Lin <andy_ch_lin@wistron.com>
Signed-off-by: Jekyll Lai <jekyll_lai@wistron.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/intel_sst/intelmid_v2_control.c

index 3d31900eba6949c37a304baffb10d1f937cdc029..b5fb22ca7f6429d41d639287f1b5545f0cfa784b 100644 (file)
@@ -1053,7 +1053,7 @@ static void nc_pmic_irq_cb(void *cb_data, u8 intsts)
                present = 1;
                jack_event_flag = 1;
                buttonpressflag = 1;
-               mjack->jack.type = MID_JACK_HS_SHORT_PRESS;
+               mjack->jack.type = MID_JACK_HS_LONG_PRESS;
        }
 
        if (jack_event_flag)