1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // behold-columbus.h - Keytable for behold_columbus 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
1132cf86f6SMauro Carvalho Chehab /* Beholder Intl. Ltd. 2008
1232cf86f6SMauro Carvalho Chehab * Dmitry Belimov d.belimov@google.com
1332cf86f6SMauro Carvalho Chehab * Keytable is used by BeholdTV Columbus
1432cf86f6SMauro Carvalho Chehab * The "ascii-art picture" below (in comments, first row
1532cf86f6SMauro Carvalho Chehab * is the keycode in hex, and subsequent row(s) shows
1632cf86f6SMauro Carvalho Chehab * the button labels (several variants when appropriate)
1704ad3011SMauro Carvalho Chehab * helps to decide which keycodes to assign to the buttons.
1832cf86f6SMauro Carvalho Chehab */
1932cf86f6SMauro Carvalho Chehab
202f4f58d6SMauro Carvalho Chehab static struct rc_map_table behold_columbus[] = {
2132cf86f6SMauro Carvalho Chehab
2232cf86f6SMauro Carvalho Chehab /* 0x13 0x11 0x1C 0x12 *
2332cf86f6SMauro Carvalho Chehab * Mute Source TV/FM Power *
2432cf86f6SMauro Carvalho Chehab * */
2532cf86f6SMauro Carvalho Chehab
2632cf86f6SMauro Carvalho Chehab { 0x13, KEY_MUTE },
276f9e46b4SMauro Carvalho Chehab { 0x11, KEY_VIDEO },
2832cf86f6SMauro Carvalho Chehab { 0x1C, KEY_TUNER }, /* KEY_TV/KEY_RADIO */
2932cf86f6SMauro Carvalho Chehab { 0x12, KEY_POWER },
3032cf86f6SMauro Carvalho Chehab
3132cf86f6SMauro Carvalho Chehab /* 0x01 0x02 0x03 0x0D *
3232cf86f6SMauro Carvalho Chehab * 1 2 3 Stereo *
3332cf86f6SMauro Carvalho Chehab * *
3432cf86f6SMauro Carvalho Chehab * 0x04 0x05 0x06 0x19 *
3532cf86f6SMauro Carvalho Chehab * 4 5 6 Snapshot *
3632cf86f6SMauro Carvalho Chehab * *
3732cf86f6SMauro Carvalho Chehab * 0x07 0x08 0x09 0x10 *
3832cf86f6SMauro Carvalho Chehab * 7 8 9 Zoom *
3932cf86f6SMauro Carvalho Chehab * */
40*1910ea42SBastien Nocera { 0x01, KEY_NUMERIC_1 },
41*1910ea42SBastien Nocera { 0x02, KEY_NUMERIC_2 },
42*1910ea42SBastien Nocera { 0x03, KEY_NUMERIC_3 },
4332cf86f6SMauro Carvalho Chehab { 0x0D, KEY_SETUP }, /* Setup key */
44*1910ea42SBastien Nocera { 0x04, KEY_NUMERIC_4 },
45*1910ea42SBastien Nocera { 0x05, KEY_NUMERIC_5 },
46*1910ea42SBastien Nocera { 0x06, KEY_NUMERIC_6 },
4732cf86f6SMauro Carvalho Chehab { 0x19, KEY_CAMERA }, /* Snapshot key */
48*1910ea42SBastien Nocera { 0x07, KEY_NUMERIC_7 },
49*1910ea42SBastien Nocera { 0x08, KEY_NUMERIC_8 },
50*1910ea42SBastien Nocera { 0x09, KEY_NUMERIC_9 },
5132cf86f6SMauro Carvalho Chehab { 0x10, KEY_ZOOM },
5232cf86f6SMauro Carvalho Chehab
5332cf86f6SMauro Carvalho Chehab /* 0x0A 0x00 0x0B 0x0C *
5432cf86f6SMauro Carvalho Chehab * RECALL 0 ChannelUp VolumeUp *
5532cf86f6SMauro Carvalho Chehab * */
5632cf86f6SMauro Carvalho Chehab { 0x0A, KEY_AGAIN },
57*1910ea42SBastien Nocera { 0x00, KEY_NUMERIC_0 },
5832cf86f6SMauro Carvalho Chehab { 0x0B, KEY_CHANNELUP },
5932cf86f6SMauro Carvalho Chehab { 0x0C, KEY_VOLUMEUP },
6032cf86f6SMauro Carvalho Chehab
6132cf86f6SMauro Carvalho Chehab /* 0x1B 0x1D 0x15 0x18 *
6232cf86f6SMauro Carvalho Chehab * Timeshift Record ChannelDown VolumeDown *
6332cf86f6SMauro Carvalho Chehab * */
6432cf86f6SMauro Carvalho Chehab
6532cf86f6SMauro Carvalho Chehab { 0x1B, KEY_TIME },
6632cf86f6SMauro Carvalho Chehab { 0x1D, KEY_RECORD },
6732cf86f6SMauro Carvalho Chehab { 0x15, KEY_CHANNELDOWN },
6832cf86f6SMauro Carvalho Chehab { 0x18, KEY_VOLUMEDOWN },
6932cf86f6SMauro Carvalho Chehab
7032cf86f6SMauro Carvalho Chehab /* 0x0E 0x1E 0x0F 0x1A *
7104ad3011SMauro Carvalho Chehab * Stop Pause Previous Next *
7232cf86f6SMauro Carvalho Chehab * */
7332cf86f6SMauro Carvalho Chehab
7432cf86f6SMauro Carvalho Chehab { 0x0E, KEY_STOP },
7532cf86f6SMauro Carvalho Chehab { 0x1E, KEY_PAUSE },
7632cf86f6SMauro Carvalho Chehab { 0x0F, KEY_PREVIOUS },
7732cf86f6SMauro Carvalho Chehab { 0x1A, KEY_NEXT },
7832cf86f6SMauro Carvalho Chehab
7932cf86f6SMauro Carvalho Chehab };
8032cf86f6SMauro Carvalho Chehab
81d100e659SMauro Carvalho Chehab static struct rc_map_list behold_columbus_map = {
8232cf86f6SMauro Carvalho Chehab .map = {
8332cf86f6SMauro Carvalho Chehab .scan = behold_columbus,
8432cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(behold_columbus),
856d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
8632cf86f6SMauro Carvalho Chehab .name = RC_MAP_BEHOLD_COLUMBUS,
8732cf86f6SMauro Carvalho Chehab }
8832cf86f6SMauro Carvalho Chehab };
8932cf86f6SMauro Carvalho Chehab
init_rc_map_behold_columbus(void)9032cf86f6SMauro Carvalho Chehab static int __init init_rc_map_behold_columbus(void)
9132cf86f6SMauro Carvalho Chehab {
92d100e659SMauro Carvalho Chehab return rc_map_register(&behold_columbus_map);
9332cf86f6SMauro Carvalho Chehab }
9432cf86f6SMauro Carvalho Chehab
exit_rc_map_behold_columbus(void)9532cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_behold_columbus(void)
9632cf86f6SMauro Carvalho Chehab {
97d100e659SMauro Carvalho Chehab rc_map_unregister(&behold_columbus_map);
9832cf86f6SMauro Carvalho Chehab }
9932cf86f6SMauro Carvalho Chehab
10032cf86f6SMauro Carvalho Chehab module_init(init_rc_map_behold_columbus)
10132cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_behold_columbus)
10232cf86f6SMauro Carvalho Chehab
10332cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
10437e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
105