xref: /linux/drivers/media/rc/keymaps/rc-gotview7135.c (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // gotview7135.h - Keytable for gotview7135 Remote Controller
3688c73c6SMauro Carvalho Chehab //
4688c73c6SMauro Carvalho Chehab // keymap imported from ir-keymaps.c
5688c73c6SMauro Carvalho Chehab //
6688c73c6SMauro Carvalho Chehab // Copyright (c) 2010 by Mauro Carvalho Chehab
732cf86f6SMauro Carvalho Chehab 
832cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
97a707b89SPaul Gortmaker #include <linux/module.h>
1032cf86f6SMauro Carvalho Chehab 
1132cf86f6SMauro Carvalho Chehab /* Mike Baikov <mike@baikov.com> */
1232cf86f6SMauro Carvalho Chehab 
132f4f58d6SMauro Carvalho Chehab static struct rc_map_table gotview7135[] = {
1432cf86f6SMauro Carvalho Chehab 
1532cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_POWER },
1632cf86f6SMauro Carvalho Chehab 	{ 0x35, KEY_TV },
171910ea42SBastien Nocera 	{ 0x1b, KEY_NUMERIC_0 },
181910ea42SBastien Nocera 	{ 0x29, KEY_NUMERIC_1 },
191910ea42SBastien Nocera 	{ 0x19, KEY_NUMERIC_2 },
201910ea42SBastien Nocera 	{ 0x39, KEY_NUMERIC_3 },
211910ea42SBastien Nocera 	{ 0x1f, KEY_NUMERIC_4 },
221910ea42SBastien Nocera 	{ 0x2c, KEY_NUMERIC_5 },
231910ea42SBastien Nocera 	{ 0x21, KEY_NUMERIC_6 },
241910ea42SBastien Nocera 	{ 0x24, KEY_NUMERIC_7 },
251910ea42SBastien Nocera 	{ 0x18, KEY_NUMERIC_8 },
261910ea42SBastien Nocera 	{ 0x2b, KEY_NUMERIC_9 },
2732cf86f6SMauro Carvalho Chehab 	{ 0x3b, KEY_AGAIN },	/* LOOP */
2832cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_AUDIO },
2932cf86f6SMauro Carvalho Chehab 	{ 0x31, KEY_PRINT },	/* PREVIEW */
3032cf86f6SMauro Carvalho Chehab 	{ 0x3e, KEY_VIDEO },
3132cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_CHANNELUP },
3232cf86f6SMauro Carvalho Chehab 	{ 0x20, KEY_CHANNELDOWN },
3332cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_VOLUMEDOWN },
3432cf86f6SMauro Carvalho Chehab 	{ 0x28, KEY_VOLUMEUP },
3532cf86f6SMauro Carvalho Chehab 	{ 0x08, KEY_MUTE },
3632cf86f6SMauro Carvalho Chehab 	{ 0x26, KEY_SEARCH },	/* SCAN */
3732cf86f6SMauro Carvalho Chehab 	{ 0x3f, KEY_CAMERA },	/* SNAPSHOT */
3832cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_RECORD },
3932cf86f6SMauro Carvalho Chehab 	{ 0x32, KEY_STOP },
4032cf86f6SMauro Carvalho Chehab 	{ 0x3c, KEY_PLAY },
4132cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_REWIND },
4232cf86f6SMauro Carvalho Chehab 	{ 0x2d, KEY_PAUSE },
4332cf86f6SMauro Carvalho Chehab 	{ 0x0d, KEY_FORWARD },
4432cf86f6SMauro Carvalho Chehab 	{ 0x05, KEY_ZOOM },	/*FULL*/
4532cf86f6SMauro Carvalho Chehab 
4632cf86f6SMauro Carvalho Chehab 	{ 0x2a, KEY_F21 },	/* LIVE TIMESHIFT */
4732cf86f6SMauro Carvalho Chehab 	{ 0x0e, KEY_F22 },	/* MIN TIMESHIFT */
4832cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_TIME },	/* TIMESHIFT */
4932cf86f6SMauro Carvalho Chehab 	{ 0x38, KEY_F24 },	/* NORMAL TIMESHIFT */
5032cf86f6SMauro Carvalho Chehab };
5132cf86f6SMauro Carvalho Chehab 
52d100e659SMauro Carvalho Chehab static struct rc_map_list gotview7135_map = {
5332cf86f6SMauro Carvalho Chehab 	.map = {
5432cf86f6SMauro Carvalho Chehab 		.scan     = gotview7135,
5532cf86f6SMauro Carvalho Chehab 		.size     = ARRAY_SIZE(gotview7135),
566d741bfeSSean Young 		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
5732cf86f6SMauro Carvalho Chehab 		.name     = RC_MAP_GOTVIEW7135,
5832cf86f6SMauro Carvalho Chehab 	}
5932cf86f6SMauro Carvalho Chehab };
6032cf86f6SMauro Carvalho Chehab 
init_rc_map_gotview7135(void)6132cf86f6SMauro Carvalho Chehab static int __init init_rc_map_gotview7135(void)
6232cf86f6SMauro Carvalho Chehab {
63d100e659SMauro Carvalho Chehab 	return rc_map_register(&gotview7135_map);
6432cf86f6SMauro Carvalho Chehab }
6532cf86f6SMauro Carvalho Chehab 
exit_rc_map_gotview7135(void)6632cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_gotview7135(void)
6732cf86f6SMauro Carvalho Chehab {
68d100e659SMauro Carvalho Chehab 	rc_map_unregister(&gotview7135_map);
6932cf86f6SMauro Carvalho Chehab }
7032cf86f6SMauro Carvalho Chehab 
7132cf86f6SMauro Carvalho Chehab module_init(init_rc_map_gotview7135)
7232cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_gotview7135)
7332cf86f6SMauro Carvalho Chehab 
7432cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
7537e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
76*462e108bSHans Verkuil MODULE_DESCRIPTION("gotview7135 remote controller keytable");
77