1 // SPDX-License-Identifier: GPL-2.0+
2 // budget-ci-old.h - Keytable for budget_ci_old Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
12 * From reading the following remotes:
13 * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
14 * Hauppauge (from NOVA-CI-s box product)
15 * This is a "middle of the road" approach, differences are noted
18 static struct rc_map_table budget_ci_old
[] = {
31 { 0x0c, KEY_POWER
}, /* RADIO on Hauppauge */
33 { 0x0f, KEY_A
}, /* TV on Hauppauge */
34 { 0x10, KEY_VOLUMEUP
},
35 { 0x11, KEY_VOLUMEDOWN
},
39 { 0x1e, KEY_OPTION
}, /* RESERVED on Hauppauge */
41 { 0x20, KEY_CHANNELUP
},
42 { 0x21, KEY_CHANNELDOWN
},
43 { 0x22, KEY_PREVIOUS
}, /* Prev Ch on Zenith, SOURCE on Hauppauge */
44 { 0x24, KEY_RESTART
},
46 { 0x26, KEY_CYCLEWINDOWS
}, /* MINIMIZE on Hauppauge */
47 { 0x28, KEY_ENTER
}, /* VCR mode on Zenith */
51 { 0x2e, KEY_MENU
}, /* FULL SCREEN on Hauppauge */
53 { 0x31, KEY_PREVIOUS
}, /* VCR mode on Zenith */
55 { 0x34, KEY_FASTFORWARD
},
59 { 0x38, KEY_TUNER
}, /* TV/VCR on Zenith */
66 static struct rc_map_list budget_ci_old_map
= {
68 .scan
= budget_ci_old
,
69 .size
= ARRAY_SIZE(budget_ci_old
),
70 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
71 .name
= RC_MAP_BUDGET_CI_OLD
,
75 static int __init
init_rc_map_budget_ci_old(void)
77 return rc_map_register(&budget_ci_old_map
);
80 static void __exit
exit_rc_map_budget_ci_old(void)
82 rc_map_unregister(&budget_ci_old_map
);
85 module_init(init_rc_map_budget_ci_old
)
86 module_exit(exit_rc_map_budget_ci_old
)
88 MODULE_LICENSE("GPL");
89 MODULE_AUTHOR("Mauro Carvalho Chehab");