[media] ir-core: more cleanups of ir-functions.c
[deliverable/linux.git] / drivers / media / IR / keymaps / rc-pinnacle-pctv-hd.c
1 /* pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd 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 /* Pinnacle PCTV HD 800i mini remote */
16
17 static struct ir_scancode pinnacle_pctv_hd[] = {
18
19 { 0x0f, KEY_1 },
20 { 0x15, KEY_2 },
21 { 0x10, KEY_3 },
22 { 0x18, KEY_4 },
23 { 0x1b, KEY_5 },
24 { 0x1e, KEY_6 },
25 { 0x11, KEY_7 },
26 { 0x21, KEY_8 },
27 { 0x12, KEY_9 },
28 { 0x27, KEY_0 },
29
30 { 0x24, KEY_ZOOM },
31 { 0x2a, KEY_SUBTITLE },
32
33 { 0x00, KEY_MUTE },
34 { 0x01, KEY_ENTER }, /* Pinnacle Logo */
35 { 0x39, KEY_POWER },
36
37 { 0x03, KEY_VOLUMEUP },
38 { 0x09, KEY_VOLUMEDOWN },
39 { 0x06, KEY_CHANNELUP },
40 { 0x0c, KEY_CHANNELDOWN },
41
42 { 0x2d, KEY_REWIND },
43 { 0x30, KEY_PLAYPAUSE },
44 { 0x33, KEY_FASTFORWARD },
45 { 0x3c, KEY_STOP },
46 { 0x36, KEY_RECORD },
47 { 0x3f, KEY_EPG }, /* Labeled "?" */
48 };
49
50 static struct rc_keymap pinnacle_pctv_hd_map = {
51 .map = {
52 .scan = pinnacle_pctv_hd,
53 .size = ARRAY_SIZE(pinnacle_pctv_hd),
54 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
55 .name = RC_MAP_PINNACLE_PCTV_HD,
56 }
57 };
58
59 static int __init init_rc_map_pinnacle_pctv_hd(void)
60 {
61 return ir_register_map(&pinnacle_pctv_hd_map);
62 }
63
64 static void __exit exit_rc_map_pinnacle_pctv_hd(void)
65 {
66 ir_unregister_map(&pinnacle_pctv_hd_map);
67 }
68
69 module_init(init_rc_map_pinnacle_pctv_hd)
70 module_exit(exit_rc_map_pinnacle_pctv_hd)
71
72 MODULE_LICENSE("GPL");
73 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
This page took 0.031033 seconds and 5 git commands to generate.