Commit 19493478 authored by TJ's avatar TJ Committed by Dmitry Torokhov

Input: wistron_btns - support Prestigio Wifi RF kill button

The Prestigio 157, an old no-name clone laptop uses input keys very
similar to the Wistron 1557/MS2141 with the addition of BIOS-controlled
wireless radio frequency kill switch.

This patch adds support for the RF kill switch control and adds manual
identification of the model.

The Prestigio does not expose any recognisable identity via dmidecode
and so requires manual selection at module init using

force=1 keymap=prestigio
Signed-off-by: default avatarTJ <ubuntu@tjworld.net>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 685aaca7
...@@ -611,6 +611,20 @@ static struct key_entry keymap_wistron_generic[] __initdata = { ...@@ -611,6 +611,20 @@ static struct key_entry keymap_wistron_generic[] __initdata = {
{ KE_END, 0 } { KE_END, 0 }
}; };
static struct key_entry keymap_prestigio[] __initdata = {
{ KE_KEY, 0x11, {KEY_PROG1} },
{ KE_KEY, 0x12, {KEY_PROG2} },
{ KE_WIFI, 0x30 },
{ KE_KEY, 0x22, {KEY_REWIND} },
{ KE_KEY, 0x23, {KEY_FORWARD} },
{ KE_KEY, 0x24, {KEY_PLAYPAUSE} },
{ KE_KEY, 0x25, {KEY_STOPCD} },
{ KE_KEY, 0x31, {KEY_MAIL} },
{ KE_KEY, 0x36, {KEY_WWW} },
{ KE_END, 0 }
};
/* /*
* If your machine is not here (which is currently rather likely), please send * If your machine is not here (which is currently rather likely), please send
* a list of buttons and their key codes (reported when loading this module * a list of buttons and their key codes (reported when loading this module
...@@ -971,6 +985,8 @@ static int __init select_keymap(void) ...@@ -971,6 +985,8 @@ static int __init select_keymap(void)
if (keymap_name != NULL) { if (keymap_name != NULL) {
if (strcmp (keymap_name, "1557/MS2141") == 0) if (strcmp (keymap_name, "1557/MS2141") == 0)
keymap = keymap_wistron_ms2141; keymap = keymap_wistron_ms2141;
else if (strcmp (keymap_name, "prestigio") == 0)
keymap = keymap_prestigio;
else if (strcmp (keymap_name, "generic") == 0) else if (strcmp (keymap_name, "generic") == 0)
keymap = keymap_wistron_generic; keymap = keymap_wistron_generic;
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment