xref: /linux/drivers/media/rc/keymaps/rc-eztv.c (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // eztv.h - Keytable for eztv 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 /* Alfons Geser <a.geser@cox.net>
1232cf86f6SMauro Carvalho Chehab  * updates from Job D. R. Borges <jobdrb@ig.com.br> */
1332cf86f6SMauro Carvalho Chehab 
142f4f58d6SMauro Carvalho Chehab static struct rc_map_table eztv[] = {
1532cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_POWER },
1632cf86f6SMauro Carvalho Chehab 	{ 0x01, KEY_TV },	/* DVR */
1732cf86f6SMauro Carvalho Chehab 	{ 0x15, KEY_DVD },	/* DVD */
1832cf86f6SMauro Carvalho Chehab 	{ 0x17, KEY_AUDIO },	/* music */
1932cf86f6SMauro Carvalho Chehab 				/* DVR mode / DVD mode / music mode */
2032cf86f6SMauro Carvalho Chehab 
2132cf86f6SMauro Carvalho Chehab 	{ 0x1b, KEY_MUTE },	/* mute */
2232cf86f6SMauro Carvalho Chehab 	{ 0x02, KEY_LANGUAGE },	/* MTS/SAP / audio / autoseek */
2332cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_SUBTITLE },	/* closed captioning / subtitle / seek */
2432cf86f6SMauro Carvalho Chehab 	{ 0x16, KEY_ZOOM },	/* full screen */
2532cf86f6SMauro Carvalho Chehab 	{ 0x1c, KEY_VIDEO },	/* video source / eject / delall */
2632cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_RESTART },	/* playback / angle / del */
2732cf86f6SMauro Carvalho Chehab 	{ 0x2f, KEY_SEARCH },	/* scan / menu / playlist */
2832cf86f6SMauro Carvalho Chehab 	{ 0x30, KEY_CHANNEL },	/* CH surfing / bookmark / memo */
2932cf86f6SMauro Carvalho Chehab 
3032cf86f6SMauro Carvalho Chehab 	{ 0x31, KEY_HELP },	/* help */
3132cf86f6SMauro Carvalho Chehab 	{ 0x32, KEY_MODE },	/* num/memo */
3232cf86f6SMauro Carvalho Chehab 	{ 0x33, KEY_ESC },	/* cancel */
3332cf86f6SMauro Carvalho Chehab 
3432cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_UP },	/* up */
3532cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_DOWN },	/* down */
3632cf86f6SMauro Carvalho Chehab 	{ 0x08, KEY_LEFT },	/* left */
3732cf86f6SMauro Carvalho Chehab 	{ 0x04, KEY_RIGHT },	/* right */
3832cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_SELECT },	/* select */
3932cf86f6SMauro Carvalho Chehab 
4032cf86f6SMauro Carvalho Chehab 	{ 0x1f, KEY_REWIND },	/* rewind */
4132cf86f6SMauro Carvalho Chehab 	{ 0x20, KEY_PLAYPAUSE },/* play/pause */
4232cf86f6SMauro Carvalho Chehab 	{ 0x29, KEY_FORWARD },	/* forward */
4332cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_AGAIN },	/* repeat */
4432cf86f6SMauro Carvalho Chehab 	{ 0x2b, KEY_RECORD },	/* recording */
4532cf86f6SMauro Carvalho Chehab 	{ 0x2c, KEY_STOP },	/* stop */
4632cf86f6SMauro Carvalho Chehab 	{ 0x2d, KEY_PLAY },	/* play */
4732cf86f6SMauro Carvalho Chehab 	{ 0x2e, KEY_CAMERA },	/* snapshot / shuffle */
4832cf86f6SMauro Carvalho Chehab 
491910ea42SBastien Nocera 	{ 0x00, KEY_NUMERIC_0 },
501910ea42SBastien Nocera 	{ 0x05, KEY_NUMERIC_1 },
511910ea42SBastien Nocera 	{ 0x06, KEY_NUMERIC_2 },
521910ea42SBastien Nocera 	{ 0x07, KEY_NUMERIC_3 },
531910ea42SBastien Nocera 	{ 0x09, KEY_NUMERIC_4 },
541910ea42SBastien Nocera 	{ 0x0a, KEY_NUMERIC_5 },
551910ea42SBastien Nocera 	{ 0x0b, KEY_NUMERIC_6 },
561910ea42SBastien Nocera 	{ 0x0d, KEY_NUMERIC_7 },
571910ea42SBastien Nocera 	{ 0x0e, KEY_NUMERIC_8 },
581910ea42SBastien Nocera 	{ 0x0f, KEY_NUMERIC_9 },
5932cf86f6SMauro Carvalho Chehab 
6032cf86f6SMauro Carvalho Chehab 	{ 0x2a, KEY_VOLUMEUP },
6132cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_VOLUMEDOWN },
6232cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_CHANNELUP },/* CH.tracking up */
6332cf86f6SMauro Carvalho Chehab 	{ 0x19, KEY_CHANNELDOWN },/* CH.tracking down */
6432cf86f6SMauro Carvalho Chehab 
6532cf86f6SMauro Carvalho Chehab 	{ 0x13, KEY_ENTER },	/* enter */
6632cf86f6SMauro Carvalho Chehab 	{ 0x21, KEY_DOT },	/* . (decimal dot) */
6732cf86f6SMauro Carvalho Chehab };
6832cf86f6SMauro Carvalho Chehab 
69d100e659SMauro Carvalho Chehab static struct rc_map_list eztv_map = {
7032cf86f6SMauro Carvalho Chehab 	.map = {
7132cf86f6SMauro Carvalho Chehab 		.scan     = eztv,
7232cf86f6SMauro Carvalho Chehab 		.size     = ARRAY_SIZE(eztv),
736d741bfeSSean Young 		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
7432cf86f6SMauro Carvalho Chehab 		.name     = RC_MAP_EZTV,
7532cf86f6SMauro Carvalho Chehab 	}
7632cf86f6SMauro Carvalho Chehab };
7732cf86f6SMauro Carvalho Chehab 
init_rc_map_eztv(void)7832cf86f6SMauro Carvalho Chehab static int __init init_rc_map_eztv(void)
7932cf86f6SMauro Carvalho Chehab {
80d100e659SMauro Carvalho Chehab 	return rc_map_register(&eztv_map);
8132cf86f6SMauro Carvalho Chehab }
8232cf86f6SMauro Carvalho Chehab 
exit_rc_map_eztv(void)8332cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_eztv(void)
8432cf86f6SMauro Carvalho Chehab {
85d100e659SMauro Carvalho Chehab 	rc_map_unregister(&eztv_map);
8632cf86f6SMauro Carvalho Chehab }
8732cf86f6SMauro Carvalho Chehab 
8832cf86f6SMauro Carvalho Chehab module_init(init_rc_map_eztv)
8932cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_eztv)
9032cf86f6SMauro Carvalho Chehab 
9132cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
9237e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
93*462e108bSHans Verkuil MODULE_DESCRIPTION("eztv remote controller keytable");
94