1 /* tbs-nec.h - Keytable for tbs_nec Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
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.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 static struct rc_map_table tbs_nec
[] = {
17 { 0x84, KEY_POWER2
}, /* power */
18 { 0x94, KEY_MUTE
}, /* mute */
29 { 0xc0, KEY_10CHANNELSUP
}, /* 10+ */
30 { 0xd0, KEY_10CHANNELSDOWN
}, /* 10- */
31 { 0x96, KEY_CHANNELUP
}, /* ch+ */
32 { 0x91, KEY_CHANNELDOWN
}, /* ch- */
33 { 0x93, KEY_VOLUMEUP
}, /* vol+ */
34 { 0x8c, KEY_VOLUMEDOWN
}, /* vol- */
35 { 0x83, KEY_RECORD
}, /* rec */
36 { 0x98, KEY_PAUSE
}, /* pause, yellow */
37 { 0x99, KEY_OK
}, /* ok */
38 { 0x9a, KEY_CAMERA
}, /* snapshot */
43 { 0x95, KEY_FAVORITES
}, /* blue */
44 { 0x97, KEY_SUBTITLE
}, /* green */
49 { 0x80, KEY_PREVIOUS
}, /* red */
53 static struct rc_map_list tbs_nec_map
= {
56 .size
= ARRAY_SIZE(tbs_nec
),
57 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
58 .name
= RC_MAP_TBS_NEC
,
62 static int __init
init_rc_map_tbs_nec(void)
64 return rc_map_register(&tbs_nec_map
);
67 static void __exit
exit_rc_map_tbs_nec(void)
69 rc_map_unregister(&tbs_nec_map
);
72 module_init(init_rc_map_tbs_nec
)
73 module_exit(exit_rc_map_tbs_nec
)
75 MODULE_LICENSE("GPL");
76 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");