diff options
author | Mauro Carvalho Chehab <mywing81@gmail.com> | 2010-09-30 13:46:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 05:54:10 -0400 |
commit | fe8b671306c78a963934cb5d6e354178390b8c87 (patch) | |
tree | e17ce0d3261c7f2fd73c8ef543fd32fdd1d4ea24 /drivers/media/IR | |
parent | d2fd44a33083973157d6e0e0e8bcfd5faa214bbb (diff) |
[media] saa7134: port Asus P7131 Hybrid to use the new rc-core
The rc map table were corrected thanks to Giorgio input and tests.
Reported-by: Giorgio Vazzana <mywing81@gmail.com>
Tested-by: Giorgio Vazzana <mywing81@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR')
-rw-r--r-- | drivers/media/IR/keymaps/rc-asus-pc39.c | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/drivers/media/IR/keymaps/rc-asus-pc39.c b/drivers/media/IR/keymaps/rc-asus-pc39.c index 2aa068cd6c75..2996e0a3b8d5 100644 --- a/drivers/media/IR/keymaps/rc-asus-pc39.c +++ b/drivers/media/IR/keymaps/rc-asus-pc39.c | |||
@@ -20,56 +20,56 @@ | |||
20 | 20 | ||
21 | static struct ir_scancode asus_pc39[] = { | 21 | static struct ir_scancode asus_pc39[] = { |
22 | /* Keys 0 to 9 */ | 22 | /* Keys 0 to 9 */ |
23 | { 0x15, KEY_0 }, | 23 | { 0x082a, KEY_0 }, |
24 | { 0x29, KEY_1 }, | 24 | { 0x0816, KEY_1 }, |
25 | { 0x2d, KEY_2 }, | 25 | { 0x0812, KEY_2 }, |
26 | { 0x2b, KEY_3 }, | 26 | { 0x0814, KEY_3 }, |
27 | { 0x09, KEY_4 }, | 27 | { 0x0836, KEY_4 }, |
28 | { 0x0d, KEY_5 }, | 28 | { 0x0832, KEY_5 }, |
29 | { 0x0b, KEY_6 }, | 29 | { 0x0834, KEY_6 }, |
30 | { 0x31, KEY_7 }, | 30 | { 0x080e, KEY_7 }, |
31 | { 0x35, KEY_8 }, | 31 | { 0x080a, KEY_8 }, |
32 | { 0x33, KEY_9 }, | 32 | { 0x080c, KEY_9 }, |
33 | 33 | ||
34 | { 0x3e, KEY_RADIO }, /* radio */ | 34 | { 0x0801, KEY_RADIO }, /* radio */ |
35 | { 0x03, KEY_MENU }, /* dvd/menu */ | 35 | { 0x083c, KEY_MENU }, /* dvd/menu */ |
36 | { 0x2a, KEY_VOLUMEUP }, | 36 | { 0x0815, KEY_VOLUMEUP }, |
37 | { 0x19, KEY_VOLUMEDOWN }, | 37 | { 0x0826, KEY_VOLUMEDOWN }, |
38 | { 0x37, KEY_UP }, | 38 | { 0x0808, KEY_UP }, |
39 | { 0x3b, KEY_DOWN }, | 39 | { 0x0804, KEY_DOWN }, |
40 | { 0x27, KEY_LEFT }, | 40 | { 0x0818, KEY_LEFT }, |
41 | { 0x2f, KEY_RIGHT }, | 41 | { 0x0810, KEY_RIGHT }, |
42 | { 0x25, KEY_VIDEO }, /* video */ | 42 | { 0x081a, KEY_VIDEO }, /* video */ |
43 | { 0x39, KEY_AUDIO }, /* music */ | 43 | { 0x0806, KEY_AUDIO }, /* music */ |
44 | 44 | ||
45 | { 0x21, KEY_TV }, /* tv */ | 45 | { 0x081e, KEY_TV }, /* tv */ |
46 | { 0x1d, KEY_EXIT }, /* back */ | 46 | { 0x0822, KEY_EXIT }, /* back */ |
47 | { 0x0a, KEY_CHANNELUP }, /* channel / program + */ | 47 | { 0x0835, KEY_CHANNELUP }, /* channel / program + */ |
48 | { 0x1b, KEY_CHANNELDOWN }, /* channel / program - */ | 48 | { 0x0824, KEY_CHANNELDOWN }, /* channel / program - */ |
49 | { 0x1a, KEY_ENTER }, /* enter */ | 49 | { 0x0825, KEY_ENTER }, /* enter */ |
50 | 50 | ||
51 | { 0x06, KEY_PAUSE }, /* play/pause */ | 51 | { 0x0839, KEY_PAUSE }, /* play/pause */ |
52 | { 0x1e, KEY_PREVIOUS }, /* rew */ | 52 | { 0x0821, KEY_PREVIOUS }, /* rew */ |
53 | { 0x26, KEY_NEXT }, /* forward */ | 53 | { 0x0819, KEY_NEXT }, /* forward */ |
54 | { 0x0e, KEY_REWIND }, /* backward << */ | 54 | { 0x0831, KEY_REWIND }, /* backward << */ |
55 | { 0x3a, KEY_FASTFORWARD }, /* forward >> */ | 55 | { 0x0805, KEY_FASTFORWARD }, /* forward >> */ |
56 | { 0x36, KEY_STOP }, | 56 | { 0x0809, KEY_STOP }, |
57 | { 0x2e, KEY_RECORD }, /* recording */ | 57 | { 0x0811, KEY_RECORD }, /* recording */ |
58 | { 0x16, KEY_POWER }, /* the button that reads "close" */ | 58 | { 0x0829, KEY_POWER }, /* the button that reads "close" */ |
59 | 59 | ||
60 | { 0x11, KEY_ZOOM }, /* full screen */ | 60 | { 0x082e, KEY_ZOOM }, /* full screen */ |
61 | { 0x13, KEY_MACRO }, /* recall */ | 61 | { 0x082c, KEY_MACRO }, /* recall */ |
62 | { 0x23, KEY_HOME }, /* home */ | 62 | { 0x081c, KEY_HOME }, /* home */ |
63 | { 0x05, KEY_PVR }, /* picture */ | 63 | { 0x083a, KEY_PVR }, /* picture */ |
64 | { 0x3d, KEY_MUTE }, /* mute */ | 64 | { 0x0802, KEY_MUTE }, /* mute */ |
65 | { 0x01, KEY_DVD }, /* dvd */ | 65 | { 0x083e, KEY_DVD }, /* dvd */ |
66 | }; | 66 | }; |
67 | 67 | ||
68 | static struct rc_keymap asus_pc39_map = { | 68 | static struct rc_keymap asus_pc39_map = { |
69 | .map = { | 69 | .map = { |
70 | .scan = asus_pc39, | 70 | .scan = asus_pc39, |
71 | .size = ARRAY_SIZE(asus_pc39), | 71 | .size = ARRAY_SIZE(asus_pc39), |
72 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ | 72 | .ir_type = IR_TYPE_RC5, |
73 | .name = RC_MAP_ASUS_PC39, | 73 | .name = RC_MAP_ASUS_PC39, |
74 | } | 74 | } |
75 | }; | 75 | }; |