Commit | Line | Data |
---|---|---|
6686fa69 MCC |
1 | /* pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd Remote Controller |
2 | * | |
3 | * keymap imported from ir-keymaps.c | |
4 | * | |
37e59f87 | 5 | * Copyright (c) 2010 by Mauro Carvalho Chehab |
6686fa69 MCC |
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> | |
7a707b89 | 14 | #include <linux/module.h> |
6686fa69 MCC |
15 | |
16 | /* Pinnacle PCTV HD 800i mini remote */ | |
17 | ||
2f4f58d6 | 18 | static struct rc_map_table pinnacle_pctv_hd[] = { |
1ba9268c JW |
19 | /* Key codes for the tiny Pinnacle remote*/ |
20 | { 0x0700, KEY_MUTE }, | |
21 | { 0x0701, KEY_MENU }, /* Pinnacle logo */ | |
22 | { 0x0739, KEY_POWER }, | |
23 | { 0x0703, KEY_VOLUMEUP }, | |
63f409a4 | 24 | { 0x0705, KEY_OK }, |
1ba9268c JW |
25 | { 0x0709, KEY_VOLUMEDOWN }, |
26 | { 0x0706, KEY_CHANNELUP }, | |
27 | { 0x070c, KEY_CHANNELDOWN }, | |
28 | { 0x070f, KEY_1 }, | |
29 | { 0x0715, KEY_2 }, | |
30 | { 0x0710, KEY_3 }, | |
31 | { 0x0718, KEY_4 }, | |
32 | { 0x071b, KEY_5 }, | |
33 | { 0x071e, KEY_6 }, | |
34 | { 0x0711, KEY_7 }, | |
35 | { 0x0721, KEY_8 }, | |
36 | { 0x0712, KEY_9 }, | |
37 | { 0x0727, KEY_0 }, | |
38 | { 0x0724, KEY_ZOOM }, /* 'Square' key */ | |
39 | { 0x072a, KEY_SUBTITLE }, /* 'T' key */ | |
40 | { 0x072d, KEY_REWIND }, | |
41 | { 0x0730, KEY_PLAYPAUSE }, | |
42 | { 0x0733, KEY_FASTFORWARD }, | |
43 | { 0x0736, KEY_RECORD }, | |
44 | { 0x073c, KEY_STOP }, | |
45 | { 0x073f, KEY_HELP }, /* '?' key */ | |
6686fa69 MCC |
46 | }; |
47 | ||
d100e659 | 48 | static struct rc_map_list pinnacle_pctv_hd_map = { |
6686fa69 MCC |
49 | .map = { |
50 | .scan = pinnacle_pctv_hd, | |
51 | .size = ARRAY_SIZE(pinnacle_pctv_hd), | |
1ba9268c | 52 | .rc_type = RC_TYPE_RC5, |
6686fa69 MCC |
53 | .name = RC_MAP_PINNACLE_PCTV_HD, |
54 | } | |
55 | }; | |
56 | ||
57 | static int __init init_rc_map_pinnacle_pctv_hd(void) | |
58 | { | |
d100e659 | 59 | return rc_map_register(&pinnacle_pctv_hd_map); |
6686fa69 MCC |
60 | } |
61 | ||
62 | static void __exit exit_rc_map_pinnacle_pctv_hd(void) | |
63 | { | |
d100e659 | 64 | rc_map_unregister(&pinnacle_pctv_hd_map); |
6686fa69 MCC |
65 | } |
66 | ||
67 | module_init(init_rc_map_pinnacle_pctv_hd) | |
68 | module_exit(exit_rc_map_pinnacle_pctv_hd) | |
69 | ||
70 | MODULE_LICENSE("GPL"); | |
37e59f87 | 71 | MODULE_AUTHOR("Mauro Carvalho Chehab"); |