xref: /linux/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // dntv-live-dvb-t.h - Keytable for dntv_live_dvb_t 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 /* DigitalNow DNTV Live DVB-T Remote */
1232cf86f6SMauro Carvalho Chehab 
132f4f58d6SMauro Carvalho Chehab static struct rc_map_table dntv_live_dvb_t[] = {
1432cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_ESC },		/* 'go up a level?' */
1532cf86f6SMauro Carvalho Chehab 	/* Keys 0 to 9 */
161910ea42SBastien Nocera 	{ 0x0a, KEY_NUMERIC_0 },
171910ea42SBastien Nocera 	{ 0x01, KEY_NUMERIC_1 },
181910ea42SBastien Nocera 	{ 0x02, KEY_NUMERIC_2 },
191910ea42SBastien Nocera 	{ 0x03, KEY_NUMERIC_3 },
201910ea42SBastien Nocera 	{ 0x04, KEY_NUMERIC_4 },
211910ea42SBastien Nocera 	{ 0x05, KEY_NUMERIC_5 },
221910ea42SBastien Nocera 	{ 0x06, KEY_NUMERIC_6 },
231910ea42SBastien Nocera 	{ 0x07, KEY_NUMERIC_7 },
241910ea42SBastien Nocera 	{ 0x08, KEY_NUMERIC_8 },
251910ea42SBastien Nocera 	{ 0x09, KEY_NUMERIC_9 },
2632cf86f6SMauro Carvalho Chehab 
2732cf86f6SMauro Carvalho Chehab 	{ 0x0b, KEY_TUNER },		/* tv/fm */
2832cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_SEARCH },		/* scan */
2932cf86f6SMauro Carvalho Chehab 	{ 0x0d, KEY_STOP },
3032cf86f6SMauro Carvalho Chehab 	{ 0x0e, KEY_PAUSE },
316f9e46b4SMauro Carvalho Chehab 	{ 0x0f, KEY_VIDEO },		/* source */
3232cf86f6SMauro Carvalho Chehab 
3332cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_MUTE },
3432cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_REWIND },		/* backward << */
3532cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_POWER },
3632cf86f6SMauro Carvalho Chehab 	{ 0x13, KEY_CAMERA },		/* snap */
3732cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_AUDIO },		/* stereo */
3832cf86f6SMauro Carvalho Chehab 	{ 0x15, KEY_CLEAR },		/* reset */
3932cf86f6SMauro Carvalho Chehab 	{ 0x16, KEY_PLAY },
4032cf86f6SMauro Carvalho Chehab 	{ 0x17, KEY_ENTER },
4132cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_ZOOM },		/* full screen */
4232cf86f6SMauro Carvalho Chehab 	{ 0x19, KEY_FASTFORWARD },	/* forward >> */
4332cf86f6SMauro Carvalho Chehab 	{ 0x1a, KEY_CHANNELUP },
4432cf86f6SMauro Carvalho Chehab 	{ 0x1b, KEY_VOLUMEUP },
4532cf86f6SMauro Carvalho Chehab 	{ 0x1c, KEY_INFO },		/* preview */
4632cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_RECORD },		/* record */
4732cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_CHANNELDOWN },
4832cf86f6SMauro Carvalho Chehab 	{ 0x1f, KEY_VOLUMEDOWN },
4932cf86f6SMauro Carvalho Chehab };
5032cf86f6SMauro Carvalho Chehab 
51d100e659SMauro Carvalho Chehab static struct rc_map_list dntv_live_dvb_t_map = {
5232cf86f6SMauro Carvalho Chehab 	.map = {
5332cf86f6SMauro Carvalho Chehab 		.scan     = dntv_live_dvb_t,
5432cf86f6SMauro Carvalho Chehab 		.size     = ARRAY_SIZE(dntv_live_dvb_t),
556d741bfeSSean Young 		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
5632cf86f6SMauro Carvalho Chehab 		.name     = RC_MAP_DNTV_LIVE_DVB_T,
5732cf86f6SMauro Carvalho Chehab 	}
5832cf86f6SMauro Carvalho Chehab };
5932cf86f6SMauro Carvalho Chehab 
init_rc_map_dntv_live_dvb_t(void)6032cf86f6SMauro Carvalho Chehab static int __init init_rc_map_dntv_live_dvb_t(void)
6132cf86f6SMauro Carvalho Chehab {
62d100e659SMauro Carvalho Chehab 	return rc_map_register(&dntv_live_dvb_t_map);
6332cf86f6SMauro Carvalho Chehab }
6432cf86f6SMauro Carvalho Chehab 
exit_rc_map_dntv_live_dvb_t(void)6532cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_dntv_live_dvb_t(void)
6632cf86f6SMauro Carvalho Chehab {
67d100e659SMauro Carvalho Chehab 	rc_map_unregister(&dntv_live_dvb_t_map);
6832cf86f6SMauro Carvalho Chehab }
6932cf86f6SMauro Carvalho Chehab 
7032cf86f6SMauro Carvalho Chehab module_init(init_rc_map_dntv_live_dvb_t)
7132cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_dntv_live_dvb_t)
7232cf86f6SMauro Carvalho Chehab 
7332cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
7437e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
75*462e108bSHans Verkuil MODULE_DESCRIPTION("dntv-live-dvb-t remote controller keytable");
76