xref: /linux/drivers/media/rc/keymaps/rc-lme2510.c (revision d100e659b61a735c3343b3d82c1c009b04072cdd)
132cf86f6SMauro Carvalho Chehab /* LME2510 remote control
232cf86f6SMauro Carvalho Chehab  *
332cf86f6SMauro Carvalho Chehab  *
432cf86f6SMauro Carvalho Chehab  * Copyright (C) 2010 Malcolm Priestley (tvboxspy@gmail.com)
532cf86f6SMauro Carvalho Chehab  *
632cf86f6SMauro Carvalho Chehab  * This program is free software; you can redistribute it and/or modify
732cf86f6SMauro Carvalho Chehab  * it under the terms of the GNU General Public License as published by
832cf86f6SMauro Carvalho Chehab  * the Free Software Foundation; either version 2 of the License, or
932cf86f6SMauro Carvalho Chehab  * (at your option) any later version.
1032cf86f6SMauro Carvalho Chehab  */
1132cf86f6SMauro Carvalho Chehab 
1232cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
1332cf86f6SMauro Carvalho Chehab 
1432cf86f6SMauro Carvalho Chehab 
152f4f58d6SMauro Carvalho Chehab static struct rc_map_table lme2510_rc[] = {
1632cf86f6SMauro Carvalho Chehab 	{ 0xba45, KEY_0 },
1732cf86f6SMauro Carvalho Chehab 	{ 0xa05f, KEY_1 },
1832cf86f6SMauro Carvalho Chehab 	{ 0xaf50, KEY_2 },
1932cf86f6SMauro Carvalho Chehab 	{ 0xa25d, KEY_3 },
2032cf86f6SMauro Carvalho Chehab 	{ 0xbe41, KEY_4 },
2132cf86f6SMauro Carvalho Chehab 	{ 0xf50a, KEY_5 },
2232cf86f6SMauro Carvalho Chehab 	{ 0xbd42, KEY_6 },
2332cf86f6SMauro Carvalho Chehab 	{ 0xb847, KEY_7 },
2432cf86f6SMauro Carvalho Chehab 	{ 0xb649, KEY_8 },
2532cf86f6SMauro Carvalho Chehab 	{ 0xfa05, KEY_9 },
2632cf86f6SMauro Carvalho Chehab 	{ 0xbc43, KEY_POWER },
2732cf86f6SMauro Carvalho Chehab 	{ 0xb946, KEY_SUBTITLE },
2832cf86f6SMauro Carvalho Chehab 	{ 0xf906, KEY_PAUSE },
2932cf86f6SMauro Carvalho Chehab 	{ 0xfc03, KEY_MEDIA_REPEAT},
3032cf86f6SMauro Carvalho Chehab 	{ 0xfd02, KEY_PAUSE },
3132cf86f6SMauro Carvalho Chehab 	{ 0xa15e, KEY_VOLUMEUP },
3232cf86f6SMauro Carvalho Chehab 	{ 0xa35c, KEY_VOLUMEDOWN },
3332cf86f6SMauro Carvalho Chehab 	{ 0xf609, KEY_CHANNELUP },
3432cf86f6SMauro Carvalho Chehab 	{ 0xe51a, KEY_CHANNELDOWN },
3532cf86f6SMauro Carvalho Chehab 	{ 0xe11e, KEY_PLAY },
3632cf86f6SMauro Carvalho Chehab 	{ 0xe41b, KEY_ZOOM },
3732cf86f6SMauro Carvalho Chehab 	{ 0xa659, KEY_MUTE },
3832cf86f6SMauro Carvalho Chehab 	{ 0xa55a, KEY_TV },
3932cf86f6SMauro Carvalho Chehab 	{ 0xe718, KEY_RECORD },
4032cf86f6SMauro Carvalho Chehab 	{ 0xf807, KEY_EPG },
4132cf86f6SMauro Carvalho Chehab 	{ 0xfe01, KEY_STOP },
4232cf86f6SMauro Carvalho Chehab 
4332cf86f6SMauro Carvalho Chehab };
4432cf86f6SMauro Carvalho Chehab 
45*d100e659SMauro Carvalho Chehab static struct rc_map_list lme2510_map = {
4632cf86f6SMauro Carvalho Chehab 	.map = {
4732cf86f6SMauro Carvalho Chehab 		.scan    = lme2510_rc,
4832cf86f6SMauro Carvalho Chehab 		.size    = ARRAY_SIZE(lme2510_rc),
4952b66144SMauro Carvalho Chehab 		.rc_type = RC_TYPE_UNKNOWN,
5032cf86f6SMauro Carvalho Chehab 		.name    = RC_MAP_LME2510,
5132cf86f6SMauro Carvalho Chehab 	}
5232cf86f6SMauro Carvalho Chehab };
5332cf86f6SMauro Carvalho Chehab 
5432cf86f6SMauro Carvalho Chehab static int __init init_rc_lme2510_map(void)
5532cf86f6SMauro Carvalho Chehab {
56*d100e659SMauro Carvalho Chehab 	return rc_map_register(&lme2510_map);
5732cf86f6SMauro Carvalho Chehab }
5832cf86f6SMauro Carvalho Chehab 
5932cf86f6SMauro Carvalho Chehab static void __exit exit_rc_lme2510_map(void)
6032cf86f6SMauro Carvalho Chehab {
61*d100e659SMauro Carvalho Chehab 	rc_map_unregister(&lme2510_map);
6232cf86f6SMauro Carvalho Chehab }
6332cf86f6SMauro Carvalho Chehab 
6432cf86f6SMauro Carvalho Chehab module_init(init_rc_lme2510_map)
6532cf86f6SMauro Carvalho Chehab module_exit(exit_rc_lme2510_map)
6632cf86f6SMauro Carvalho Chehab 
6732cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
6832cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com");
69