diff options
Diffstat (limited to 'drivers/media/IR/keymaps/rc-asus-pc39.c')
-rw-r--r-- | drivers/media/IR/keymaps/rc-asus-pc39.c | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/drivers/media/IR/keymaps/rc-asus-pc39.c b/drivers/media/IR/keymaps/rc-asus-pc39.c new file mode 100644 index 000000000000..2aa068cd6c75 --- /dev/null +++ b/drivers/media/IR/keymaps/rc-asus-pc39.c | |||
@@ -0,0 +1,91 @@ | |||
1 | /* asus-pc39.h - Keytable for asus_pc39 Remote Controller | ||
2 | * | ||
3 | * keymap imported from ir-keymaps.c | ||
4 | * | ||
5 | * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <media/rc-map.h> | ||
14 | |||
15 | /* | ||
16 | * Marc Fargas <telenieko@telenieko.com> | ||
17 | * this is the remote control that comes with the asus p7131 | ||
18 | * which has a label saying is "Model PC-39" | ||
19 | */ | ||
20 | |||
21 | static struct ir_scancode asus_pc39[] = { | ||
22 | /* Keys 0 to 9 */ | ||
23 | { 0x15, KEY_0 }, | ||
24 | { 0x29, KEY_1 }, | ||
25 | { 0x2d, KEY_2 }, | ||
26 | { 0x2b, KEY_3 }, | ||
27 | { 0x09, KEY_4 }, | ||
28 | { 0x0d, KEY_5 }, | ||
29 | { 0x0b, KEY_6 }, | ||
30 | { 0x31, KEY_7 }, | ||
31 | { 0x35, KEY_8 }, | ||
32 | { 0x33, KEY_9 }, | ||
33 | |||
34 | { 0x3e, KEY_RADIO }, /* radio */ | ||
35 | { 0x03, KEY_MENU }, /* dvd/menu */ | ||
36 | { 0x2a, KEY_VOLUMEUP }, | ||
37 | { 0x19, KEY_VOLUMEDOWN }, | ||
38 | { 0x37, KEY_UP }, | ||
39 | { 0x3b, KEY_DOWN }, | ||
40 | { 0x27, KEY_LEFT }, | ||
41 | { 0x2f, KEY_RIGHT }, | ||
42 | { 0x25, KEY_VIDEO }, /* video */ | ||
43 | { 0x39, KEY_AUDIO }, /* music */ | ||
44 | |||
45 | { 0x21, KEY_TV }, /* tv */ | ||
46 | { 0x1d, KEY_EXIT }, /* back */ | ||
47 | { 0x0a, KEY_CHANNELUP }, /* channel / program + */ | ||
48 | { 0x1b, KEY_CHANNELDOWN }, /* channel / program - */ | ||
49 | { 0x1a, KEY_ENTER }, /* enter */ | ||
50 | |||
51 | { 0x06, KEY_PAUSE }, /* play/pause */ | ||
52 | { 0x1e, KEY_PREVIOUS }, /* rew */ | ||
53 | { 0x26, KEY_NEXT }, /* forward */ | ||
54 | { 0x0e, KEY_REWIND }, /* backward << */ | ||
55 | { 0x3a, KEY_FASTFORWARD }, /* forward >> */ | ||
56 | { 0x36, KEY_STOP }, | ||
57 | { 0x2e, KEY_RECORD }, /* recording */ | ||
58 | { 0x16, KEY_POWER }, /* the button that reads "close" */ | ||
59 | |||
60 | { 0x11, KEY_ZOOM }, /* full screen */ | ||
61 | { 0x13, KEY_MACRO }, /* recall */ | ||
62 | { 0x23, KEY_HOME }, /* home */ | ||
63 | { 0x05, KEY_PVR }, /* picture */ | ||
64 | { 0x3d, KEY_MUTE }, /* mute */ | ||
65 | { 0x01, KEY_DVD }, /* dvd */ | ||
66 | }; | ||
67 | |||
68 | static struct rc_keymap asus_pc39_map = { | ||
69 | .map = { | ||
70 | .scan = asus_pc39, | ||
71 | .size = ARRAY_SIZE(asus_pc39), | ||
72 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ | ||
73 | .name = RC_MAP_ASUS_PC39, | ||
74 | } | ||
75 | }; | ||
76 | |||
77 | static int __init init_rc_map_asus_pc39(void) | ||
78 | { | ||
79 | return ir_register_map(&asus_pc39_map); | ||
80 | } | ||
81 | |||
82 | static void __exit exit_rc_map_asus_pc39(void) | ||
83 | { | ||
84 | ir_unregister_map(&asus_pc39_map); | ||
85 | } | ||
86 | |||
87 | module_init(init_rc_map_asus_pc39) | ||
88 | module_exit(exit_rc_map_asus_pc39) | ||
89 | |||
90 | MODULE_LICENSE("GPL"); | ||
91 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||