1 // SPDX-License-Identifier: GPL-2.0+
2 // manli.h - Keytable for manli 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 /* Michael Tokarev <mjt@tls.msk.ru>
12 keytable is used by MANLI MTV00[0x0c] and BeholdTV 40[13] at
13 least, and probably other cards too.
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 manli
[] = {
26 { 0x1c, KEY_RADIO
}, /*XXX*/
38 { 0x01, KEY_NUMERIC_1
},
39 { 0x02, KEY_NUMERIC_2
},
40 { 0x03, KEY_NUMERIC_3
},
41 { 0x04, KEY_NUMERIC_4
},
42 { 0x05, KEY_NUMERIC_5
},
43 { 0x06, KEY_NUMERIC_6
},
44 { 0x07, KEY_NUMERIC_7
},
45 { 0x08, KEY_NUMERIC_8
},
46 { 0x09, KEY_NUMERIC_9
},
52 { 0x0a, KEY_AGAIN
}, /*XXX KEY_REWIND? */
53 { 0x00, KEY_NUMERIC_0
},
54 { 0x17, KEY_DIGITS
}, /*XXX*/
73 { 0x16, KEY_OK
}, /*XXX KEY_SELECT? KEY_ENTER? */
81 { 0x11, KEY_TV
}, /*XXX*/
82 { 0x0d, KEY_MODE
}, /*XXX there's no KEY_STEREO */
92 { 0x1b, KEY_VOLUMEUP
},
93 { 0x1a, KEY_CHANNELUP
},
95 { 0x1f, KEY_VOLUMEDOWN
},
96 { 0x1e, KEY_CHANNELDOWN
},
102 { 0x19, KEY_CAMERA
},
107 static struct rc_map_list manli_map
= {
110 .size
= ARRAY_SIZE(manli
),
111 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
112 .name
= RC_MAP_MANLI
,
116 static int __init
init_rc_map_manli(void)
118 return rc_map_register(&manli_map
);
121 static void __exit
exit_rc_map_manli(void)
123 rc_map_unregister(&manli_map
);
126 module_init(init_rc_map_manli
)
127 module_exit(exit_rc_map_manli
)
129 MODULE_LICENSE("GPL");
130 MODULE_AUTHOR("Mauro Carvalho Chehab");