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)
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>
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
}, /* -> ) */
43 { 0x1f, KEY_HOMEPAGE
},
52 { 0x10, KEY_CHANNELUP
},
53 { 0x11, KEY_CHANNELDOWN
},
55 { 0x13, KEY_VOLUMEUP
},
56 { 0x12, KEY_VOLUMEDOWN
},
58 { 0x19, KEY_TIME
}, /* Timeshift */
64 { 0x44, KEY_PLAYPAUSE
},
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
= {
81 .scan
= kworld_pc150u
,
82 .size
= ARRAY_SIZE(kworld_pc150u
),
83 .rc_proto
= RC_PROTO_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>");