1 // SPDX-License-Identifier: GPL-2.0+
2 // behold-columbus.h - Keytable for behold_columbus 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>
11 /* Beholder Intl. Ltd. 2008
12 * Dmitry Belimov d.belimov@google.com
13 * Keytable is used by BeholdTV Columbus
14 * The "ascii-art picture" below (in comments, first row
15 * is the keycode in hex, and subsequent row(s) shows
16 * the button labels (several variants when appropriate)
17 * helps to decide which keycodes to assign to the buttons.
20 static struct rc_map_table behold_columbus
[] = {
22 /* 0x13 0x11 0x1C 0x12 *
23 * Mute Source TV/FM Power *
28 { 0x1C, KEY_TUNER
}, /* KEY_TV/KEY_RADIO */
31 /* 0x01 0x02 0x03 0x0D *
34 * 0x04 0x05 0x06 0x19 *
37 * 0x07 0x08 0x09 0x10 *
40 { 0x01, KEY_NUMERIC_1
},
41 { 0x02, KEY_NUMERIC_2
},
42 { 0x03, KEY_NUMERIC_3
},
43 { 0x0D, KEY_SETUP
}, /* Setup key */
44 { 0x04, KEY_NUMERIC_4
},
45 { 0x05, KEY_NUMERIC_5
},
46 { 0x06, KEY_NUMERIC_6
},
47 { 0x19, KEY_CAMERA
}, /* Snapshot key */
48 { 0x07, KEY_NUMERIC_7
},
49 { 0x08, KEY_NUMERIC_8
},
50 { 0x09, KEY_NUMERIC_9
},
53 /* 0x0A 0x00 0x0B 0x0C *
54 * RECALL 0 ChannelUp VolumeUp *
57 { 0x00, KEY_NUMERIC_0
},
58 { 0x0B, KEY_CHANNELUP
},
59 { 0x0C, KEY_VOLUMEUP
},
61 /* 0x1B 0x1D 0x15 0x18 *
62 * Timeshift Record ChannelDown VolumeDown *
67 { 0x15, KEY_CHANNELDOWN
},
68 { 0x18, KEY_VOLUMEDOWN
},
70 /* 0x0E 0x1E 0x0F 0x1A *
71 * Stop Pause Previous Next *
76 { 0x0F, KEY_PREVIOUS
},
81 static struct rc_map_list behold_columbus_map
= {
83 .scan
= behold_columbus
,
84 .size
= ARRAY_SIZE(behold_columbus
),
85 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
86 .name
= RC_MAP_BEHOLD_COLUMBUS
,
90 static int __init
init_rc_map_behold_columbus(void)
92 return rc_map_register(&behold_columbus_map
);
95 static void __exit
exit_rc_map_behold_columbus(void)
97 rc_map_unregister(&behold_columbus_map
);
100 module_init(init_rc_map_behold_columbus
)
101 module_exit(exit_rc_map_behold_columbus
)
103 MODULE_LICENSE("GPL");
104 MODULE_AUTHOR("Mauro Carvalho Chehab");