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>
15 static struct ir_scancode tbs_nec
[] = {
16 { 0x04, KEY_POWER2
}, /*power*/
17 { 0x14, KEY_MUTE
}, /*mute*/
28 { 0x16, KEY_CHANNELUP
}, /*ch+*/
29 { 0x11, KEY_CHANNELDOWN
},/*ch-*/
30 { 0x13, KEY_VOLUMEUP
}, /*vol+*/
31 { 0x0c, KEY_VOLUMEDOWN
},/*vol-*/
32 { 0x03, KEY_RECORD
}, /*rec*/
33 { 0x18, KEY_PAUSE
}, /*pause*/
34 { 0x19, KEY_OK
}, /*ok*/
35 { 0x1a, KEY_CAMERA
}, /* snapshot */
40 { 0x15, KEY_FAVORITES
},
41 { 0x17, KEY_SUBTITLE
},
46 { 0x00, KEY_PREVIOUS
},
50 static struct rc_keymap tbs_nec_map
= {
53 .size
= ARRAY_SIZE(tbs_nec
),
54 .ir_type
= IR_TYPE_UNKNOWN
, /* Legacy IR type */
55 .name
= RC_MAP_TBS_NEC
,
59 static int __init
init_rc_map_tbs_nec(void)
61 return ir_register_map(&tbs_nec_map
);
64 static void __exit
exit_rc_map_tbs_nec(void)
66 ir_unregister_map(&tbs_nec_map
);
69 module_init(init_rc_map_tbs_nec
)
70 module_exit(exit_rc_map_tbs_nec
)
72 MODULE_LICENSE("GPL");
73 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");