Linux 3.11-rc3
[cris-mirror.git] / drivers / media / rc / keymaps / rc-kworld-pc150u.c
blob233bb5ee087f3412771a4c437de6951cd3957b88
1 /* kworld-pc150u.c - Keytable for kworld_pc150u Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Kyle Strickland
6 * (based on kworld-plus-tv-analog.c by
7 * Mauro Carvalho Chehab <mchehab@redhat.com>)
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.
15 #include <media/rc-map.h>
16 #include <linux/module.h>
18 /* Kworld PC150-U
19 Kyle Strickland <kyle@kyle.strickland.name>
22 static struct rc_map_table kworld_pc150u[] = {
23 { 0x0c, KEY_MEDIA }, /* Kworld key */
24 { 0x16, KEY_EJECTCLOSECD }, /* -> ) */
25 { 0x1d, KEY_POWER2 },
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 },
38 { 0x09, KEY_AGAIN },
39 { 0x14, KEY_MUTE },
41 { 0x1e, KEY_LAST },
42 { 0x17, KEY_ZOOM },
43 { 0x1f, KEY_HOMEPAGE },
44 { 0x0e, KEY_ESC },
46 { 0x20, KEY_UP },
47 { 0x21, KEY_DOWN },
48 { 0x42, KEY_LEFT },
49 { 0x43, KEY_RIGHT },
50 { 0x0b, KEY_ENTER },
52 { 0x10, KEY_CHANNELUP },
53 { 0x11, KEY_CHANNELDOWN },
55 { 0x13, KEY_VOLUMEUP },
56 { 0x12, KEY_VOLUMEDOWN },
58 { 0x19, KEY_TIME}, /* Timeshift */
59 { 0x1a, KEY_STOP},
60 { 0x1b, KEY_RECORD},
61 { 0x4b, KEY_EMAIL},
63 { 0x40, KEY_REWIND},
64 { 0x44, KEY_PLAYPAUSE},
65 { 0x41, KEY_FORWARD},
66 { 0x22, KEY_TEXT},
68 { 0x15, KEY_AUDIO}, /* ((*)) */
69 { 0x0f, KEY_MODE}, /* display ratio */
70 { 0x1c, KEY_SYSRQ}, /* snapshot */
71 { 0x4a, KEY_SLEEP}, /* sleep timer */
73 { 0x48, KEY_SOUND}, /* switch theater mode */
74 { 0x49, KEY_BLUE}, /* A */
75 { 0x18, KEY_RED}, /* B */
76 { 0x23, KEY_GREEN}, /* C */
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,
88 static int __init init_rc_map_kworld_pc150u(void)
90 return rc_map_register(&kworld_pc150u_map);
93 static void __exit exit_rc_map_kworld_pc150u(void)
95 rc_map_unregister(&kworld_pc150u_map);
98 module_init(init_rc_map_kworld_pc150u)
99 module_exit(exit_rc_map_kworld_pc150u)
101 MODULE_LICENSE("GPL");
102 MODULE_AUTHOR("Kyle Strickland <kyle@kyle.strickland.name>");