WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-encore-enltv-fm53.c
blob7a00471b6005273c37797b26934fb1d443d0f2ff
1 // SPDX-License-Identifier: GPL-2.0+
2 // encore-enltv-fm53.h - Keytable for encore_enltv_fm53 Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* Encore ENLTV-FM v5.3
12 Mauro Carvalho Chehab <mchehab@kernel.org>
15 static struct rc_map_table encore_enltv_fm53[] = {
16 { 0x10, KEY_POWER2},
17 { 0x06, KEY_MUTE},
19 { 0x09, KEY_NUMERIC_1},
20 { 0x1d, KEY_NUMERIC_2},
21 { 0x1f, KEY_NUMERIC_3},
22 { 0x19, KEY_NUMERIC_4},
23 { 0x1b, KEY_NUMERIC_5},
24 { 0x11, KEY_NUMERIC_6},
25 { 0x17, KEY_NUMERIC_7},
26 { 0x12, KEY_NUMERIC_8},
27 { 0x16, KEY_NUMERIC_9},
28 { 0x48, KEY_NUMERIC_0},
30 { 0x04, KEY_LIST}, /* -/-- */
31 { 0x40, KEY_LAST}, /* recall */
33 { 0x02, KEY_MODE}, /* TV/AV */
34 { 0x05, KEY_CAMERA}, /* SNAPSHOT */
36 { 0x4c, KEY_CHANNELUP}, /* UP */
37 { 0x00, KEY_CHANNELDOWN}, /* DOWN */
38 { 0x0d, KEY_VOLUMEUP}, /* RIGHT */
39 { 0x15, KEY_VOLUMEDOWN}, /* LEFT */
40 { 0x49, KEY_ENTER}, /* OK */
42 { 0x54, KEY_RECORD},
43 { 0x4d, KEY_PLAY}, /* pause */
45 { 0x1e, KEY_MENU}, /* video setting */
46 { 0x0e, KEY_RIGHT}, /* <- */
47 { 0x1a, KEY_LEFT}, /* -> */
49 { 0x0a, KEY_CLEAR}, /* video default */
50 { 0x0c, KEY_ZOOM}, /* hide pannel */
51 { 0x47, KEY_SLEEP}, /* shutdown */
54 static struct rc_map_list encore_enltv_fm53_map = {
55 .map = {
56 .scan = encore_enltv_fm53,
57 .size = ARRAY_SIZE(encore_enltv_fm53),
58 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
59 .name = RC_MAP_ENCORE_ENLTV_FM53,
63 static int __init init_rc_map_encore_enltv_fm53(void)
65 return rc_map_register(&encore_enltv_fm53_map);
68 static void __exit exit_rc_map_encore_enltv_fm53(void)
70 rc_map_unregister(&encore_enltv_fm53_map);
73 module_init(init_rc_map_encore_enltv_fm53)
74 module_exit(exit_rc_map_encore_enltv_fm53)
76 MODULE_LICENSE("GPL");
77 MODULE_AUTHOR("Mauro Carvalho Chehab");