1 /* budget-ci-old.h - Keytable for budget_ci_old Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
17 * From reading the following remotes:
18 * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
19 * Hauppauge (from NOVA-CI-s box product)
20 * This is a "middle of the road" approach, differences are noted
23 static struct rc_map_table budget_ci_old
[] = {
36 { 0x0c, KEY_POWER
}, /* RADIO on Hauppauge */
38 { 0x0f, KEY_A
}, /* TV on Hauppauge */
39 { 0x10, KEY_VOLUMEUP
},
40 { 0x11, KEY_VOLUMEDOWN
},
44 { 0x1e, KEY_OPTION
}, /* RESERVED on Hauppauge */
46 { 0x20, KEY_CHANNELUP
},
47 { 0x21, KEY_CHANNELDOWN
},
48 { 0x22, KEY_PREVIOUS
}, /* Prev Ch on Zenith, SOURCE on Hauppauge */
49 { 0x24, KEY_RESTART
},
51 { 0x26, KEY_CYCLEWINDOWS
}, /* MINIMIZE on Hauppauge */
52 { 0x28, KEY_ENTER
}, /* VCR mode on Zenith */
56 { 0x2e, KEY_MENU
}, /* FULL SCREEN on Hauppauge */
58 { 0x31, KEY_PREVIOUS
}, /* VCR mode on Zenith */
60 { 0x34, KEY_FASTFORWARD
},
64 { 0x38, KEY_TUNER
}, /* TV/VCR on Zenith */
71 static struct rc_map_list budget_ci_old_map
= {
73 .scan
= budget_ci_old
,
74 .size
= ARRAY_SIZE(budget_ci_old
),
75 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
76 .name
= RC_MAP_BUDGET_CI_OLD
,
80 static int __init
init_rc_map_budget_ci_old(void)
82 return rc_map_register(&budget_ci_old_map
);
85 static void __exit
exit_rc_map_budget_ci_old(void)
87 rc_map_unregister(&budget_ci_old_map
);
90 module_init(init_rc_map_budget_ci_old
)
91 module_exit(exit_rc_map_budget_ci_old
)
93 MODULE_LICENSE("GPL");
94 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");