diff options
author | Wolfgang Bail <wolfgang.bail@t-online.de> | 2012-09-29 22:49:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-07 08:57:34 -0400 |
commit | b45681a60ed52b3716f3faf79f81e55b81bc7335 (patch) | |
tree | 1bdea0a078302e6f3926f4a81a9ac46eca0d82fd /drivers/media | |
parent | 546196addefb2e25810964c41ce2186eba8cad4b (diff) |
[media] rc-msi-digivox-ii: Add full scan keycodes
The ir-rc from my MSI DigiVox mini II Version 3 (af9015) will not work since
kernel 3.2.x.
sudo ir-keytable -t shows:
1348890734.303273: event MSC: scancode = 317
1348890734.303280: event key down: KEY_POWER (0x0074)
1348890734.303282: event sync
1348890734.553961: event key up: KEY_POWER (0x0074)
1348890734.553963: event sync
1348890741.303451: event MSC: scancode = 30d
1348890741.303457: event key down: KEY_DOWN (0x006c)
1348890741.303459: event sync
1348890741.553956: event key up: KEY_DOWN (0x006c)
So I changed in rc-msi-digivox-ii.c { 0x0002, KEY_2 }, to { 0x0302, KEY_2 },
and so on. And now it works well.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/keymaps/rc-msi-digivox-ii.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/media/rc/keymaps/rc-msi-digivox-ii.c b/drivers/media/rc/keymaps/rc-msi-digivox-ii.c index c64e9e30045d..2fa71d0d72d7 100644 --- a/drivers/media/rc/keymaps/rc-msi-digivox-ii.c +++ b/drivers/media/rc/keymaps/rc-msi-digivox-ii.c | |||
@@ -22,24 +22,24 @@ | |||
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | 23 | ||
24 | static struct rc_map_table msi_digivox_ii[] = { | 24 | static struct rc_map_table msi_digivox_ii[] = { |
25 | { 0x0002, KEY_2 }, | 25 | { 0x0302, KEY_2 }, |
26 | { 0x0003, KEY_UP }, /* up */ | 26 | { 0x0303, KEY_UP }, /* up */ |
27 | { 0x0004, KEY_3 }, | 27 | { 0x0304, KEY_3 }, |
28 | { 0x0005, KEY_CHANNELDOWN }, | 28 | { 0x0305, KEY_CHANNELDOWN }, |
29 | { 0x0008, KEY_5 }, | 29 | { 0x0308, KEY_5 }, |
30 | { 0x0009, KEY_0 }, | 30 | { 0x0309, KEY_0 }, |
31 | { 0x000b, KEY_8 }, | 31 | { 0x030b, KEY_8 }, |
32 | { 0x000d, KEY_DOWN }, /* down */ | 32 | { 0x030d, KEY_DOWN }, /* down */ |
33 | { 0x0010, KEY_9 }, | 33 | { 0x0310, KEY_9 }, |
34 | { 0x0011, KEY_7 }, | 34 | { 0x0311, KEY_7 }, |
35 | { 0x0014, KEY_VOLUMEUP }, | 35 | { 0x0314, KEY_VOLUMEUP }, |
36 | { 0x0015, KEY_CHANNELUP }, | 36 | { 0x0315, KEY_CHANNELUP }, |
37 | { 0x0016, KEY_OK }, | 37 | { 0x0316, KEY_OK }, |
38 | { 0x0017, KEY_POWER2 }, | 38 | { 0x0317, KEY_POWER2 }, |
39 | { 0x001a, KEY_1 }, | 39 | { 0x031a, KEY_1 }, |
40 | { 0x001c, KEY_4 }, | 40 | { 0x031c, KEY_4 }, |
41 | { 0x001d, KEY_6 }, | 41 | { 0x031d, KEY_6 }, |
42 | { 0x001f, KEY_VOLUMEDOWN }, | 42 | { 0x031f, KEY_VOLUMEDOWN }, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static struct rc_map_list msi_digivox_ii_map = { | 45 | static struct rc_map_list msi_digivox_ii_map = { |