blob: b196a5f436a3d4b9399a5db67fa3ab60c904b896 [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* budget-ci-old.h - Keytable for budget_ci_old Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -02005 * Copyright (c) 2010 by Mauro Carvalho Chehab
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03006 *
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.
11 */
12
13#include <media/rc-map.h>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040014#include <linux/module.h>
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030015
Mauro Carvalho Chehab444cc202011-01-24 12:18:36 -030016/*
17 * From reading the following remotes:
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030018 * 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
21 */
22
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030023static struct rc_map_table budget_ci_old[] = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030024 { 0x00, KEY_0 },
25 { 0x01, KEY_1 },
26 { 0x02, KEY_2 },
27 { 0x03, KEY_3 },
28 { 0x04, KEY_4 },
29 { 0x05, KEY_5 },
30 { 0x06, KEY_6 },
31 { 0x07, KEY_7 },
32 { 0x08, KEY_8 },
33 { 0x09, KEY_9 },
34 { 0x0a, KEY_ENTER },
35 { 0x0b, KEY_RED },
36 { 0x0c, KEY_POWER }, /* RADIO on Hauppauge */
37 { 0x0d, KEY_MUTE },
38 { 0x0f, KEY_A }, /* TV on Hauppauge */
39 { 0x10, KEY_VOLUMEUP },
40 { 0x11, KEY_VOLUMEDOWN },
41 { 0x14, KEY_B },
42 { 0x1c, KEY_UP },
43 { 0x1d, KEY_DOWN },
44 { 0x1e, KEY_OPTION }, /* RESERVED on Hauppauge */
45 { 0x1f, KEY_BREAK },
46 { 0x20, KEY_CHANNELUP },
47 { 0x21, KEY_CHANNELDOWN },
48 { 0x22, KEY_PREVIOUS }, /* Prev Ch on Zenith, SOURCE on Hauppauge */
49 { 0x24, KEY_RESTART },
50 { 0x25, KEY_OK },
51 { 0x26, KEY_CYCLEWINDOWS }, /* MINIMIZE on Hauppauge */
52 { 0x28, KEY_ENTER }, /* VCR mode on Zenith */
53 { 0x29, KEY_PAUSE },
54 { 0x2b, KEY_RIGHT },
55 { 0x2c, KEY_LEFT },
56 { 0x2e, KEY_MENU }, /* FULL SCREEN on Hauppauge */
57 { 0x30, KEY_SLOW },
58 { 0x31, KEY_PREVIOUS }, /* VCR mode on Zenith */
59 { 0x32, KEY_REWIND },
60 { 0x34, KEY_FASTFORWARD },
61 { 0x35, KEY_PLAY },
62 { 0x36, KEY_STOP },
63 { 0x37, KEY_RECORD },
64 { 0x38, KEY_TUNER }, /* TV/VCR on Zenith */
65 { 0x3a, KEY_C },
66 { 0x3c, KEY_EXIT },
67 { 0x3d, KEY_POWER2 },
68 { 0x3e, KEY_TUNER },
69};
70
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030071static struct rc_map_list budget_ci_old_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030072 .map = {
73 .scan = budget_ci_old,
74 .size = ARRAY_SIZE(budget_ci_old),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030075 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030076 .name = RC_MAP_BUDGET_CI_OLD,
77 }
78};
79
80static int __init init_rc_map_budget_ci_old(void)
81{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030082 return rc_map_register(&budget_ci_old_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030083}
84
85static void __exit exit_rc_map_budget_ci_old(void)
86{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030087 rc_map_unregister(&budget_ci_old_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030088}
89
90module_init(init_rc_map_budget_ci_old)
91module_exit(exit_rc_map_budget_ci_old)
92
93MODULE_LICENSE("GPL");
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -020094MODULE_AUTHOR("Mauro Carvalho Chehab");