1 /* pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd 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 /* Pinnacle PCTV HD 800i mini remote */
17 static struct rc_map_table pinnacle_pctv_hd
[] = {
18 /* Key codes for the tiny Pinnacle remote*/
20 { 0x0701, KEY_MENU
}, /* Pinnacle logo */
21 { 0x0739, KEY_POWER
},
22 { 0x0703, KEY_VOLUMEUP
},
23 { 0x0709, KEY_VOLUMEDOWN
},
24 { 0x0706, KEY_CHANNELUP
},
25 { 0x070c, KEY_CHANNELDOWN
},
36 { 0x0724, KEY_ZOOM
}, /* 'Square' key */
37 { 0x072a, KEY_SUBTITLE
}, /* 'T' key */
38 { 0x072d, KEY_REWIND
},
39 { 0x0730, KEY_PLAYPAUSE
},
40 { 0x0733, KEY_FASTFORWARD
},
41 { 0x0736, KEY_RECORD
},
43 { 0x073f, KEY_HELP
}, /* '?' key */
46 static struct rc_map_list pinnacle_pctv_hd_map
= {
48 .scan
= pinnacle_pctv_hd
,
49 .size
= ARRAY_SIZE(pinnacle_pctv_hd
),
50 .rc_type
= RC_TYPE_RC5
,
51 .name
= RC_MAP_PINNACLE_PCTV_HD
,
55 static int __init
init_rc_map_pinnacle_pctv_hd(void)
57 return rc_map_register(&pinnacle_pctv_hd_map
);
60 static void __exit
exit_rc_map_pinnacle_pctv_hd(void)
62 rc_map_unregister(&pinnacle_pctv_hd_map
);
65 module_init(init_rc_map_pinnacle_pctv_hd
)
66 module_exit(exit_rc_map_pinnacle_pctv_hd
)
68 MODULE_LICENSE("GPL");
69 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");