Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rc-pinnacle-grey.c
Go to the documentation of this file.
1 /* pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller
2  *
3  * keymap imported from ir-keymaps.c
4  *
5  * Copyright (c) 2010 by Mauro Carvalho Chehab <[email protected]>
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 #include <linux/module.h>
15 
16 static struct rc_map_table pinnacle_grey[] = {
17  { 0x3a, KEY_0 },
18  { 0x31, KEY_1 },
19  { 0x32, KEY_2 },
20  { 0x33, KEY_3 },
21  { 0x34, KEY_4 },
22  { 0x35, KEY_5 },
23  { 0x36, KEY_6 },
24  { 0x37, KEY_7 },
25  { 0x38, KEY_8 },
26  { 0x39, KEY_9 },
27 
28  { 0x2f, KEY_POWER },
29 
30  { 0x2e, KEY_P },
31  { 0x1f, KEY_L },
32  { 0x2b, KEY_I },
33 
34  { 0x2d, KEY_SCREEN },
35  { 0x1e, KEY_ZOOM },
36  { 0x1b, KEY_VOLUMEUP },
37  { 0x0f, KEY_VOLUMEDOWN },
38  { 0x17, KEY_CHANNELUP },
39  { 0x1c, KEY_CHANNELDOWN },
40  { 0x25, KEY_INFO },
41 
42  { 0x3c, KEY_MUTE },
43 
44  { 0x3d, KEY_LEFT },
45  { 0x3b, KEY_RIGHT },
46 
47  { 0x3f, KEY_UP },
48  { 0x3e, KEY_DOWN },
49  { 0x1a, KEY_ENTER },
50 
51  { 0x1d, KEY_MENU },
52  { 0x19, KEY_AGAIN },
53  { 0x16, KEY_PREVIOUSSONG },
54  { 0x13, KEY_NEXTSONG },
55  { 0x15, KEY_PAUSE },
56  { 0x0e, KEY_REWIND },
57  { 0x0d, KEY_PLAY },
58  { 0x0b, KEY_STOP },
59  { 0x07, KEY_FORWARD },
60  { 0x27, KEY_RECORD },
61  { 0x26, KEY_TUNER },
62  { 0x29, KEY_TEXT },
63  { 0x2a, KEY_MEDIA },
64  { 0x18, KEY_EPG },
65 };
66 
67 static struct rc_map_list pinnacle_grey_map = {
68  .map = {
69  .scan = pinnacle_grey,
70  .size = ARRAY_SIZE(pinnacle_grey),
71  .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
72  .name = RC_MAP_PINNACLE_GREY,
73  }
74 };
75 
76 static int __init init_rc_map_pinnacle_grey(void)
77 {
78  return rc_map_register(&pinnacle_grey_map);
79 }
80 
81 static void __exit exit_rc_map_pinnacle_grey(void)
82 {
83  rc_map_unregister(&pinnacle_grey_map);
84 }
85 
86 module_init(init_rc_map_pinnacle_grey)
87 module_exit(exit_rc_map_pinnacle_grey)
88 
89 MODULE_LICENSE("GPL");
90 MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");