136cb26a4SAlfredo Jesús Delaiti /*
236cb26a4SAlfredo Jesús Delaiti  * Total Media In Hand_02 remote controller keytable for Mygica X8507
336cb26a4SAlfredo Jesús Delaiti  *
436cb26a4SAlfredo Jesús Delaiti  * Copyright (C) 2012 Alfredo J. Delaiti <alfredodelaiti@netscape.net>
536cb26a4SAlfredo Jesús Delaiti  *
636cb26a4SAlfredo Jesús Delaiti  *    This program is free software; you can redistribute it and/or modify
736cb26a4SAlfredo Jesús Delaiti  *    it under the terms of the GNU General Public License as published by
836cb26a4SAlfredo Jesús Delaiti  *    the Free Software Foundation; either version 2 of the License, or
936cb26a4SAlfredo Jesús Delaiti  *    (at your option) any later version.
1036cb26a4SAlfredo Jesús Delaiti  *
1136cb26a4SAlfredo Jesús Delaiti  *    This program is distributed in the hope that it will be useful,
1236cb26a4SAlfredo Jesús Delaiti  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
1336cb26a4SAlfredo Jesús Delaiti  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1436cb26a4SAlfredo Jesús Delaiti  *    GNU General Public License for more details.
1536cb26a4SAlfredo Jesús Delaiti  *
1636cb26a4SAlfredo Jesús Delaiti  *    You should have received a copy of the GNU General Public License along
1736cb26a4SAlfredo Jesús Delaiti  *    with this program; if not, write to the Free Software Foundation, Inc.,
1836cb26a4SAlfredo Jesús Delaiti  *    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1936cb26a4SAlfredo Jesús Delaiti  */
2036cb26a4SAlfredo Jesús Delaiti 
2136cb26a4SAlfredo Jesús Delaiti #include <media/rc-map.h>
2236cb26a4SAlfredo Jesús Delaiti #include <linux/module.h>
2336cb26a4SAlfredo Jesús Delaiti 
2436cb26a4SAlfredo Jesús Delaiti 
2536cb26a4SAlfredo Jesús Delaiti static struct rc_map_table total_media_in_hand_02[] = {
2636cb26a4SAlfredo Jesús Delaiti 	{ 0x0000, KEY_0 },
2736cb26a4SAlfredo Jesús Delaiti 	{ 0x0001, KEY_1 },
2836cb26a4SAlfredo Jesús Delaiti 	{ 0x0002, KEY_2 },
2936cb26a4SAlfredo Jesús Delaiti 	{ 0x0003, KEY_3 },
3036cb26a4SAlfredo Jesús Delaiti 	{ 0x0004, KEY_4 },
3136cb26a4SAlfredo Jesús Delaiti 	{ 0x0005, KEY_5 },
3236cb26a4SAlfredo Jesús Delaiti 	{ 0x0006, KEY_6 },
3336cb26a4SAlfredo Jesús Delaiti 	{ 0x0007, KEY_7 },
3436cb26a4SAlfredo Jesús Delaiti 	{ 0x0008, KEY_8 },
3536cb26a4SAlfredo Jesús Delaiti 	{ 0x0009, KEY_9 },
3636cb26a4SAlfredo Jesús Delaiti 	{ 0x000a, KEY_MUTE },
3736cb26a4SAlfredo Jesús Delaiti 	{ 0x000b, KEY_STOP },                   /* Stop */
3836cb26a4SAlfredo Jesús Delaiti 	{ 0x000c, KEY_POWER2 },                 /* Turn on/off application */
3936cb26a4SAlfredo Jesús Delaiti 	{ 0x000d, KEY_OK },                     /* OK */
4036cb26a4SAlfredo Jesús Delaiti 	{ 0x000e, KEY_CAMERA },                 /* Snapshot */
4136cb26a4SAlfredo Jesús Delaiti 	{ 0x000f, KEY_ZOOM },                   /* Full Screen/Restore */
4236cb26a4SAlfredo Jesús Delaiti 	{ 0x0010, KEY_RIGHT },                  /* Right arrow */
4336cb26a4SAlfredo Jesús Delaiti 	{ 0x0011, KEY_LEFT },                   /* Left arrow */
4436cb26a4SAlfredo Jesús Delaiti 	{ 0x0012, KEY_CHANNELUP },
4536cb26a4SAlfredo Jesús Delaiti 	{ 0x0013, KEY_CHANNELDOWN },
4636cb26a4SAlfredo Jesús Delaiti 	{ 0x0014, KEY_SHUFFLE },
4736cb26a4SAlfredo Jesús Delaiti 	{ 0x0016, KEY_PAUSE },
4836cb26a4SAlfredo Jesús Delaiti 	{ 0x0017, KEY_PLAY },                   /* Play */
4936cb26a4SAlfredo Jesús Delaiti 	{ 0x001e, KEY_TIME },                   /* Time Shift */
5036cb26a4SAlfredo Jesús Delaiti 	{ 0x001f, KEY_RECORD },
5136cb26a4SAlfredo Jesús Delaiti 	{ 0x0020, KEY_UP },
5236cb26a4SAlfredo Jesús Delaiti 	{ 0x0021, KEY_DOWN },
5336cb26a4SAlfredo Jesús Delaiti 	{ 0x0025, KEY_POWER },                  /* Turn off computer */
5436cb26a4SAlfredo Jesús Delaiti 	{ 0x0026, KEY_REWIND },                 /* FR << */
5536cb26a4SAlfredo Jesús Delaiti 	{ 0x0027, KEY_FASTFORWARD },            /* FF >> */
5636cb26a4SAlfredo Jesús Delaiti 	{ 0x0029, KEY_ESC },
5736cb26a4SAlfredo Jesús Delaiti 	{ 0x002b, KEY_VOLUMEUP },
5836cb26a4SAlfredo Jesús Delaiti 	{ 0x002c, KEY_VOLUMEDOWN },
5936cb26a4SAlfredo Jesús Delaiti 	{ 0x002d, KEY_CHANNEL },                /* CH Surfing */
6036cb26a4SAlfredo Jesús Delaiti 	{ 0x0038, KEY_VIDEO },                  /* TV/AV/S-Video/YPbPr */
6136cb26a4SAlfredo Jesús Delaiti };
6236cb26a4SAlfredo Jesús Delaiti 
6336cb26a4SAlfredo Jesús Delaiti static struct rc_map_list total_media_in_hand_02_map = {
6436cb26a4SAlfredo Jesús Delaiti 	.map = {
6536cb26a4SAlfredo Jesús Delaiti 		.scan    = total_media_in_hand_02,
6636cb26a4SAlfredo Jesús Delaiti 		.size    = ARRAY_SIZE(total_media_in_hand_02),
6736cb26a4SAlfredo Jesús Delaiti 		.rc_type = RC_TYPE_RC5,
6836cb26a4SAlfredo Jesús Delaiti 		.name    = RC_MAP_TOTAL_MEDIA_IN_HAND_02,
6936cb26a4SAlfredo Jesús Delaiti 	}
7036cb26a4SAlfredo Jesús Delaiti };
7136cb26a4SAlfredo Jesús Delaiti 
7236cb26a4SAlfredo Jesús Delaiti static int __init init_rc_map_total_media_in_hand_02(void)
7336cb26a4SAlfredo Jesús Delaiti {
7436cb26a4SAlfredo Jesús Delaiti 	return rc_map_register(&total_media_in_hand_02_map);
7536cb26a4SAlfredo Jesús Delaiti }
7636cb26a4SAlfredo Jesús Delaiti 
7736cb26a4SAlfredo Jesús Delaiti static void __exit exit_rc_map_total_media_in_hand_02(void)
7836cb26a4SAlfredo Jesús Delaiti {
7936cb26a4SAlfredo Jesús Delaiti 	rc_map_unregister(&total_media_in_hand_02_map);
8036cb26a4SAlfredo Jesús Delaiti }
8136cb26a4SAlfredo Jesús Delaiti 
8236cb26a4SAlfredo Jesús Delaiti module_init(init_rc_map_total_media_in_hand_02)
8336cb26a4SAlfredo Jesús Delaiti module_exit(exit_rc_map_total_media_in_hand_02)
8436cb26a4SAlfredo Jesús Delaiti 
8536cb26a4SAlfredo Jesús Delaiti MODULE_LICENSE("GPL");
8636cb26a4SAlfredo Jesús Delaiti MODULE_AUTHOR(" Alfredo J. Delaiti <alfredodelaiti@netscape.net>");
87