132cf86f6SMauro Carvalho Chehab /* flyvideo.h - Keytable for flyvideo 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 static struct ir_scancode flyvideo[] = {
1632cf86f6SMauro Carvalho Chehab 	{ 0x0f, KEY_0 },
1732cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_1 },
1832cf86f6SMauro Carvalho Chehab 	{ 0x04, KEY_2 },
1932cf86f6SMauro Carvalho Chehab 	{ 0x05, KEY_3 },
2032cf86f6SMauro Carvalho Chehab 	{ 0x07, KEY_4 },
2132cf86f6SMauro Carvalho Chehab 	{ 0x08, KEY_5 },
2232cf86f6SMauro Carvalho Chehab 	{ 0x09, KEY_6 },
2332cf86f6SMauro Carvalho Chehab 	{ 0x0b, KEY_7 },
2432cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_8 },
2532cf86f6SMauro Carvalho Chehab 	{ 0x0d, KEY_9 },
2632cf86f6SMauro Carvalho Chehab 
2732cf86f6SMauro Carvalho Chehab 	{ 0x0e, KEY_MODE },	/* Air/Cable */
2832cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_VIDEO },	/* Video */
2932cf86f6SMauro Carvalho Chehab 	{ 0x15, KEY_AUDIO },	/* Audio */
3032cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_POWER },	/* Power */
3132cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_TUNER },	/* AV Source */
3232cf86f6SMauro Carvalho Chehab 	{ 0x02, KEY_ZOOM },	/* Fullscreen */
3332cf86f6SMauro Carvalho Chehab 	{ 0x1a, KEY_LANGUAGE },	/* Stereo */
3432cf86f6SMauro Carvalho Chehab 	{ 0x1b, KEY_MUTE },	/* Mute */
3532cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_VOLUMEUP },	/* Volume + */
3632cf86f6SMauro Carvalho Chehab 	{ 0x17, KEY_VOLUMEDOWN },/* Volume - */
3732cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_CHANNELUP },/* Channel + */
3832cf86f6SMauro Carvalho Chehab 	{ 0x13, KEY_CHANNELDOWN },/* Channel - */
3932cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_AGAIN },	/* Recall */
4032cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_ENTER },	/* Enter */
4132cf86f6SMauro Carvalho Chehab 
4232cf86f6SMauro Carvalho Chehab 	{ 0x19, KEY_BACK },	/* Rewind  ( <<< ) */
4332cf86f6SMauro Carvalho Chehab 	{ 0x1f, KEY_FORWARD },	/* Forward ( >>> ) */
4432cf86f6SMauro Carvalho Chehab 	{ 0x0a, KEY_ANGLE },	/* no label, may be used as the PAUSE button */
4532cf86f6SMauro Carvalho Chehab };
4632cf86f6SMauro Carvalho Chehab 
4732cf86f6SMauro Carvalho Chehab static struct rc_keymap flyvideo_map = {
4832cf86f6SMauro Carvalho Chehab 	.map = {
4932cf86f6SMauro Carvalho Chehab 		.scan    = flyvideo,
5032cf86f6SMauro Carvalho Chehab 		.size    = ARRAY_SIZE(flyvideo),
5152b66144SMauro Carvalho Chehab 		.rc_type = RC_TYPE_UNKNOWN,	/* Legacy IR type */
5232cf86f6SMauro Carvalho Chehab 		.name    = RC_MAP_FLYVIDEO,
5332cf86f6SMauro Carvalho Chehab 	}
5432cf86f6SMauro Carvalho Chehab };
5532cf86f6SMauro Carvalho Chehab 
5632cf86f6SMauro Carvalho Chehab static int __init init_rc_map_flyvideo(void)
5732cf86f6SMauro Carvalho Chehab {
5832cf86f6SMauro Carvalho Chehab 	return ir_register_map(&flyvideo_map);
5932cf86f6SMauro Carvalho Chehab }
6032cf86f6SMauro Carvalho Chehab 
6132cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_flyvideo(void)
6232cf86f6SMauro Carvalho Chehab {
6332cf86f6SMauro Carvalho Chehab 	ir_unregister_map(&flyvideo_map);
6432cf86f6SMauro Carvalho Chehab }
6532cf86f6SMauro Carvalho Chehab 
6632cf86f6SMauro Carvalho Chehab module_init(init_rc_map_flyvideo)
6732cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_flyvideo)
6832cf86f6SMauro Carvalho Chehab 
6932cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
7032cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
71