1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // budget-ci-old.h - Keytable for budget_ci_old 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
11444cc20bSMauro Carvalho Chehab /*
12444cc20bSMauro Carvalho Chehab * From reading the following remotes:
1332cf86f6SMauro Carvalho Chehab * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
1432cf86f6SMauro Carvalho Chehab * Hauppauge (from NOVA-CI-s box product)
1532cf86f6SMauro Carvalho Chehab * This is a "middle of the road" approach, differences are noted
1632cf86f6SMauro Carvalho Chehab */
1732cf86f6SMauro Carvalho Chehab
182f4f58d6SMauro Carvalho Chehab static struct rc_map_table budget_ci_old[] = {
19*1910ea42SBastien Nocera { 0x00, KEY_NUMERIC_0 },
20*1910ea42SBastien Nocera { 0x01, KEY_NUMERIC_1 },
21*1910ea42SBastien Nocera { 0x02, KEY_NUMERIC_2 },
22*1910ea42SBastien Nocera { 0x03, KEY_NUMERIC_3 },
23*1910ea42SBastien Nocera { 0x04, KEY_NUMERIC_4 },
24*1910ea42SBastien Nocera { 0x05, KEY_NUMERIC_5 },
25*1910ea42SBastien Nocera { 0x06, KEY_NUMERIC_6 },
26*1910ea42SBastien Nocera { 0x07, KEY_NUMERIC_7 },
27*1910ea42SBastien Nocera { 0x08, KEY_NUMERIC_8 },
28*1910ea42SBastien Nocera { 0x09, KEY_NUMERIC_9 },
2932cf86f6SMauro Carvalho Chehab { 0x0a, KEY_ENTER },
3032cf86f6SMauro Carvalho Chehab { 0x0b, KEY_RED },
3132cf86f6SMauro Carvalho Chehab { 0x0c, KEY_POWER }, /* RADIO on Hauppauge */
3232cf86f6SMauro Carvalho Chehab { 0x0d, KEY_MUTE },
3332cf86f6SMauro Carvalho Chehab { 0x0f, KEY_A }, /* TV on Hauppauge */
3432cf86f6SMauro Carvalho Chehab { 0x10, KEY_VOLUMEUP },
3532cf86f6SMauro Carvalho Chehab { 0x11, KEY_VOLUMEDOWN },
3632cf86f6SMauro Carvalho Chehab { 0x14, KEY_B },
3732cf86f6SMauro Carvalho Chehab { 0x1c, KEY_UP },
3832cf86f6SMauro Carvalho Chehab { 0x1d, KEY_DOWN },
3932cf86f6SMauro Carvalho Chehab { 0x1e, KEY_OPTION }, /* RESERVED on Hauppauge */
4032cf86f6SMauro Carvalho Chehab { 0x1f, KEY_BREAK },
4132cf86f6SMauro Carvalho Chehab { 0x20, KEY_CHANNELUP },
4232cf86f6SMauro Carvalho Chehab { 0x21, KEY_CHANNELDOWN },
4332cf86f6SMauro Carvalho Chehab { 0x22, KEY_PREVIOUS }, /* Prev Ch on Zenith, SOURCE on Hauppauge */
4432cf86f6SMauro Carvalho Chehab { 0x24, KEY_RESTART },
4532cf86f6SMauro Carvalho Chehab { 0x25, KEY_OK },
4632cf86f6SMauro Carvalho Chehab { 0x26, KEY_CYCLEWINDOWS }, /* MINIMIZE on Hauppauge */
4732cf86f6SMauro Carvalho Chehab { 0x28, KEY_ENTER }, /* VCR mode on Zenith */
4832cf86f6SMauro Carvalho Chehab { 0x29, KEY_PAUSE },
4932cf86f6SMauro Carvalho Chehab { 0x2b, KEY_RIGHT },
5032cf86f6SMauro Carvalho Chehab { 0x2c, KEY_LEFT },
5132cf86f6SMauro Carvalho Chehab { 0x2e, KEY_MENU }, /* FULL SCREEN on Hauppauge */
5232cf86f6SMauro Carvalho Chehab { 0x30, KEY_SLOW },
5332cf86f6SMauro Carvalho Chehab { 0x31, KEY_PREVIOUS }, /* VCR mode on Zenith */
5432cf86f6SMauro Carvalho Chehab { 0x32, KEY_REWIND },
5532cf86f6SMauro Carvalho Chehab { 0x34, KEY_FASTFORWARD },
5632cf86f6SMauro Carvalho Chehab { 0x35, KEY_PLAY },
5732cf86f6SMauro Carvalho Chehab { 0x36, KEY_STOP },
5832cf86f6SMauro Carvalho Chehab { 0x37, KEY_RECORD },
5932cf86f6SMauro Carvalho Chehab { 0x38, KEY_TUNER }, /* TV/VCR on Zenith */
6032cf86f6SMauro Carvalho Chehab { 0x3a, KEY_C },
6132cf86f6SMauro Carvalho Chehab { 0x3c, KEY_EXIT },
6232cf86f6SMauro Carvalho Chehab { 0x3d, KEY_POWER2 },
6332cf86f6SMauro Carvalho Chehab { 0x3e, KEY_TUNER },
6432cf86f6SMauro Carvalho Chehab };
6532cf86f6SMauro Carvalho Chehab
66d100e659SMauro Carvalho Chehab static struct rc_map_list budget_ci_old_map = {
6732cf86f6SMauro Carvalho Chehab .map = {
6832cf86f6SMauro Carvalho Chehab .scan = budget_ci_old,
6932cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(budget_ci_old),
706d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
7132cf86f6SMauro Carvalho Chehab .name = RC_MAP_BUDGET_CI_OLD,
7232cf86f6SMauro Carvalho Chehab }
7332cf86f6SMauro Carvalho Chehab };
7432cf86f6SMauro Carvalho Chehab
init_rc_map_budget_ci_old(void)7532cf86f6SMauro Carvalho Chehab static int __init init_rc_map_budget_ci_old(void)
7632cf86f6SMauro Carvalho Chehab {
77d100e659SMauro Carvalho Chehab return rc_map_register(&budget_ci_old_map);
7832cf86f6SMauro Carvalho Chehab }
7932cf86f6SMauro Carvalho Chehab
exit_rc_map_budget_ci_old(void)8032cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_budget_ci_old(void)
8132cf86f6SMauro Carvalho Chehab {
82d100e659SMauro Carvalho Chehab rc_map_unregister(&budget_ci_old_map);
8332cf86f6SMauro Carvalho Chehab }
8432cf86f6SMauro Carvalho Chehab
8532cf86f6SMauro Carvalho Chehab module_init(init_rc_map_budget_ci_old)
8632cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_budget_ci_old)
8732cf86f6SMauro Carvalho Chehab
8832cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
8937e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
90