From: Klaus Kurzmann <[email protected]> This makes it report headset insert/pull events via the gpio-keys input device again.
Signed-off-by: Klaus Kurzmann <[email protected]> --- arch/arm/mach-s3c2442/mach-gta02.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c index 7965cad..abcd08b 100644 --- a/arch/arm/mach-s3c2442/mach-gta02.c +++ b/arch/arm/mach-s3c2442/mach-gta02.c @@ -963,6 +963,13 @@ static struct gpio_keys_button gta02_buttons[] = { .type = EV_KEY, .debounce_interval = 100, }, + { + .gpio = GTA02_GPIO_JACK_INSERT, + .code = SW_HEADPHONE_INSERT, + .desc = "Jack Insert", + .type = EV_SW, + .debounce_interval = 100, + }, }; static struct gpio_keys_platform_data gta02_buttons_pdata = { -- 1.7.0.1
