1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // pixelview-new.h - Keytable for pixelview_new 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 /*
1232590819SMauro Carvalho Chehab Mauro Carvalho Chehab <mchehab@kernel.org>
1332cf86f6SMauro Carvalho Chehab present on PV MPEG 8000GT
1432cf86f6SMauro Carvalho Chehab */
1532cf86f6SMauro Carvalho Chehab
162f4f58d6SMauro Carvalho Chehab static struct rc_map_table pixelview_new[] = {
1732cf86f6SMauro Carvalho Chehab { 0x3c, KEY_TIME }, /* Timeshift */
1832cf86f6SMauro Carvalho Chehab { 0x12, KEY_POWER },
1932cf86f6SMauro Carvalho Chehab
20*1910ea42SBastien Nocera { 0x3d, KEY_NUMERIC_1 },
21*1910ea42SBastien Nocera { 0x38, KEY_NUMERIC_2 },
22*1910ea42SBastien Nocera { 0x18, KEY_NUMERIC_3 },
23*1910ea42SBastien Nocera { 0x35, KEY_NUMERIC_4 },
24*1910ea42SBastien Nocera { 0x39, KEY_NUMERIC_5 },
25*1910ea42SBastien Nocera { 0x15, KEY_NUMERIC_6 },
26*1910ea42SBastien Nocera { 0x36, KEY_NUMERIC_7 },
27*1910ea42SBastien Nocera { 0x3a, KEY_NUMERIC_8 },
28*1910ea42SBastien Nocera { 0x1e, KEY_NUMERIC_9 },
29*1910ea42SBastien Nocera { 0x3e, KEY_NUMERIC_0 },
3032cf86f6SMauro Carvalho Chehab
3132cf86f6SMauro Carvalho Chehab { 0x1c, KEY_AGAIN }, /* LOOP */
326f9e46b4SMauro Carvalho Chehab { 0x3f, KEY_VIDEO }, /* Source */
3332cf86f6SMauro Carvalho Chehab { 0x1f, KEY_LAST }, /* +100 */
3432cf86f6SMauro Carvalho Chehab { 0x1b, KEY_MUTE },
3532cf86f6SMauro Carvalho Chehab
3632cf86f6SMauro Carvalho Chehab { 0x17, KEY_CHANNELDOWN },
3732cf86f6SMauro Carvalho Chehab { 0x16, KEY_CHANNELUP },
3832cf86f6SMauro Carvalho Chehab { 0x10, KEY_VOLUMEUP },
3932cf86f6SMauro Carvalho Chehab { 0x14, KEY_VOLUMEDOWN },
4032cf86f6SMauro Carvalho Chehab { 0x13, KEY_ZOOM },
4132cf86f6SMauro Carvalho Chehab
4232cf86f6SMauro Carvalho Chehab { 0x19, KEY_CAMERA }, /* SNAPSHOT */
4332cf86f6SMauro Carvalho Chehab { 0x1a, KEY_SEARCH }, /* scan */
4432cf86f6SMauro Carvalho Chehab
4532cf86f6SMauro Carvalho Chehab { 0x37, KEY_REWIND }, /* << */
4632cf86f6SMauro Carvalho Chehab { 0x32, KEY_RECORD }, /* o (red) */
4732cf86f6SMauro Carvalho Chehab { 0x33, KEY_FORWARD }, /* >> */
4832cf86f6SMauro Carvalho Chehab { 0x11, KEY_STOP }, /* square */
4932cf86f6SMauro Carvalho Chehab { 0x3b, KEY_PLAY }, /* > */
5032cf86f6SMauro Carvalho Chehab { 0x30, KEY_PLAYPAUSE }, /* || */
5132cf86f6SMauro Carvalho Chehab
5232cf86f6SMauro Carvalho Chehab { 0x31, KEY_TV },
5332cf86f6SMauro Carvalho Chehab { 0x34, KEY_RADIO },
5432cf86f6SMauro Carvalho Chehab };
5532cf86f6SMauro Carvalho Chehab
56d100e659SMauro Carvalho Chehab static struct rc_map_list pixelview_new_map = {
5732cf86f6SMauro Carvalho Chehab .map = {
5832cf86f6SMauro Carvalho Chehab .scan = pixelview_new,
5932cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(pixelview_new),
606d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
6132cf86f6SMauro Carvalho Chehab .name = RC_MAP_PIXELVIEW_NEW,
6232cf86f6SMauro Carvalho Chehab }
6332cf86f6SMauro Carvalho Chehab };
6432cf86f6SMauro Carvalho Chehab
init_rc_map_pixelview_new(void)6532cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pixelview_new(void)
6632cf86f6SMauro Carvalho Chehab {
67d100e659SMauro Carvalho Chehab return rc_map_register(&pixelview_new_map);
6832cf86f6SMauro Carvalho Chehab }
6932cf86f6SMauro Carvalho Chehab
exit_rc_map_pixelview_new(void)7032cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pixelview_new(void)
7132cf86f6SMauro Carvalho Chehab {
72d100e659SMauro Carvalho Chehab rc_map_unregister(&pixelview_new_map);
7332cf86f6SMauro Carvalho Chehab }
7432cf86f6SMauro Carvalho Chehab
7532cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pixelview_new)
7632cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pixelview_new)
7732cf86f6SMauro Carvalho Chehab
7832cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
7937e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
80