Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rc-kworld-pc150u.c
Go to the documentation of this file.
1 /* kworld-pc150u.c - Keytable for kworld_pc150u Remote Controller
2  *
3  * keymap imported from ir-keymaps.c
4  *
5  * Copyright (c) 2010 by Kyle Strickland
6  * (based on kworld-plus-tv-analog.c by
7  * Mauro Carvalho Chehab <[email protected]>)
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  */
14 
15 #include <media/rc-map.h>
16 #include <linux/module.h>
17 
18 /* Kworld PC150-U
19  Kyle Strickland <[email protected]>
20  */
21 
22 static struct rc_map_table kworld_pc150u[] = {
23  { 0x0c, KEY_MEDIA }, /* Kworld key */
24  { 0x16, KEY_EJECTCLOSECD }, /* -> ) */
25  { 0x1d, KEY_POWER2 },
26 
27  { 0x00, KEY_1 },
28  { 0x01, KEY_2 },
29  { 0x02, KEY_3 },
30  { 0x03, KEY_4 },
31  { 0x04, KEY_5 },
32  { 0x05, KEY_6 },
33  { 0x06, KEY_7 },
34  { 0x07, KEY_8 },
35  { 0x08, KEY_9 },
36  { 0x0a, KEY_0 },
37 
38  { 0x09, KEY_AGAIN },
39  { 0x14, KEY_MUTE },
40 
41  { 0x1e, KEY_LAST },
42  { 0x17, KEY_ZOOM },
43  { 0x1f, KEY_HOMEPAGE },
44  { 0x0e, KEY_ESC },
45 
46  { 0x20, KEY_UP },
47  { 0x21, KEY_DOWN },
48  { 0x42, KEY_LEFT },
49  { 0x43, KEY_RIGHT },
50  { 0x0b, KEY_ENTER },
51 
52  { 0x10, KEY_CHANNELUP },
53  { 0x11, KEY_CHANNELDOWN },
54 
55  { 0x13, KEY_VOLUMEUP },
56  { 0x12, KEY_VOLUMEDOWN },
57 
58  { 0x19, KEY_TIME}, /* Timeshift */
59  { 0x1a, KEY_STOP},
60  { 0x1b, KEY_RECORD},
61  { 0x4b, KEY_EMAIL},
62 
63  { 0x40, KEY_REWIND},
64  { 0x44, KEY_PLAYPAUSE},
65  { 0x41, KEY_FORWARD},
66  { 0x22, KEY_TEXT},
67 
68  { 0x15, KEY_AUDIO}, /* ((*)) */
69  { 0x0f, KEY_MODE}, /* display ratio */
70  { 0x1c, KEY_SYSRQ}, /* snapshot */
71  { 0x4a, KEY_SLEEP}, /* sleep timer */
72 
73  { 0x48, KEY_SOUND}, /* switch theater mode */
74  { 0x49, KEY_BLUE}, /* A */
75  { 0x18, KEY_RED}, /* B */
76  { 0x23, KEY_GREEN}, /* C */
77 };
78 
79 static struct rc_map_list kworld_pc150u_map = {
80  .map = {
81  .scan = kworld_pc150u,
82  .size = ARRAY_SIZE(kworld_pc150u),
83  .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
84  .name = RC_MAP_KWORLD_PC150U,
85  }
86 };
87 
88 static int __init init_rc_map_kworld_pc150u(void)
89 {
90  return rc_map_register(&kworld_pc150u_map);
91 }
92 
93 static void __exit exit_rc_map_kworld_pc150u(void)
94 {
95  rc_map_unregister(&kworld_pc150u_map);
96 }
97 
98 module_init(init_rc_map_kworld_pc150u)
99 module_exit(exit_rc_map_kworld_pc150u)
100 
101 MODULE_LICENSE("GPL");
102 MODULE_AUTHOR("Kyle Strickland <[email protected].name>");