132cf86f6SMauro Carvalho Chehab /* pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd Remote Controller
232cf86f6SMauro Carvalho Chehab  *
332cf86f6SMauro Carvalho Chehab  * keymap imported from ir-keymaps.c
432cf86f6SMauro Carvalho Chehab  *
532cf86f6SMauro Carvalho Chehab  * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
632cf86f6SMauro Carvalho Chehab  *
732cf86f6SMauro Carvalho Chehab  * This program is free software; you can redistribute it and/or modify
832cf86f6SMauro Carvalho Chehab  * it under the terms of the GNU General Public License as published by
932cf86f6SMauro Carvalho Chehab  * the Free Software Foundation; either version 2 of the License, or
1032cf86f6SMauro Carvalho Chehab  * (at your option) any later version.
1132cf86f6SMauro Carvalho Chehab  */
1232cf86f6SMauro Carvalho Chehab 
1332cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
1432cf86f6SMauro Carvalho Chehab 
1532cf86f6SMauro Carvalho Chehab /* Pinnacle PCTV HD 800i mini remote */
1632cf86f6SMauro Carvalho Chehab 
1732cf86f6SMauro Carvalho Chehab static struct ir_scancode pinnacle_pctv_hd[] = {
1832cf86f6SMauro Carvalho Chehab 
1932cf86f6SMauro Carvalho Chehab 	{ 0x0f, KEY_1 },
2032cf86f6SMauro Carvalho Chehab 	{ 0x15, KEY_2 },
2132cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_3 },
2232cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_4 },
2332cf86f6SMauro Carvalho Chehab 	{ 0x1b, KEY_5 },
2432cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_6 },
2532cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_7 },
2632cf86f6SMauro Carvalho Chehab 	{ 0x21, KEY_8 },
2732cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_9 },
2832cf86f6SMauro Carvalho Chehab 	{ 0x27, KEY_0 },
2932cf86f6SMauro Carvalho Chehab 
3032cf86f6SMauro Carvalho Chehab 	{ 0x24, KEY_ZOOM },
3132cf86f6SMauro Carvalho Chehab 	{ 0x2a, KEY_SUBTITLE },
3232cf86f6SMauro Carvalho Chehab 
3332cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_MUTE },
3432cf86f6SMauro Carvalho Chehab 	{ 0x01, KEY_ENTER },	/* Pinnacle Logo */
3532cf86f6SMauro Carvalho Chehab 	{ 0x39, KEY_POWER },
3632cf86f6SMauro Carvalho Chehab 
3732cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_VOLUMEUP },
3832cf86f6SMauro Carvalho Chehab 	{ 0x09, KEY_VOLUMEDOWN },
3932cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_CHANNELUP },
4032cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_CHANNELDOWN },
4132cf86f6SMauro Carvalho Chehab 
4232cf86f6SMauro Carvalho Chehab 	{ 0x2d, KEY_REWIND },
4332cf86f6SMauro Carvalho Chehab 	{ 0x30, KEY_PLAYPAUSE },
4432cf86f6SMauro Carvalho Chehab 	{ 0x33, KEY_FASTFORWARD },
4532cf86f6SMauro Carvalho Chehab 	{ 0x3c, KEY_STOP },
4632cf86f6SMauro Carvalho Chehab 	{ 0x36, KEY_RECORD },
4732cf86f6SMauro Carvalho Chehab 	{ 0x3f, KEY_EPG },	/* Labeled "?" */
4832cf86f6SMauro Carvalho Chehab };
4932cf86f6SMauro Carvalho Chehab 
5032cf86f6SMauro Carvalho Chehab static struct rc_keymap pinnacle_pctv_hd_map = {
5132cf86f6SMauro Carvalho Chehab 	.map = {
5232cf86f6SMauro Carvalho Chehab 		.scan    = pinnacle_pctv_hd,
5332cf86f6SMauro Carvalho Chehab 		.size    = ARRAY_SIZE(pinnacle_pctv_hd),
5452b66144SMauro Carvalho Chehab 		.rc_type = RC_TYPE_UNKNOWN,	/* Legacy IR type */
5532cf86f6SMauro Carvalho Chehab 		.name    = RC_MAP_PINNACLE_PCTV_HD,
5632cf86f6SMauro Carvalho Chehab 	}
5732cf86f6SMauro Carvalho Chehab };
5832cf86f6SMauro Carvalho Chehab 
5932cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pinnacle_pctv_hd(void)
6032cf86f6SMauro Carvalho Chehab {
6132cf86f6SMauro Carvalho Chehab 	return ir_register_map(&pinnacle_pctv_hd_map);
6232cf86f6SMauro Carvalho Chehab }
6332cf86f6SMauro Carvalho Chehab 
6432cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pinnacle_pctv_hd(void)
6532cf86f6SMauro Carvalho Chehab {
6632cf86f6SMauro Carvalho Chehab 	ir_unregister_map(&pinnacle_pctv_hd_map);
6732cf86f6SMauro Carvalho Chehab }
6832cf86f6SMauro Carvalho Chehab 
6932cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pinnacle_pctv_hd)
7032cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pinnacle_pctv_hd)
7132cf86f6SMauro Carvalho Chehab 
7232cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
7332cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
74