WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-purpletv.c
blobbf4543fecb6f926cf26a3936baf05aedfcc28087
1 // SPDX-License-Identifier: GPL-2.0+
2 // purpletv.h - Keytable for purpletv 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 static struct rc_map_table purpletv[] = {
12 { 0x03, KEY_POWER },
13 { 0x6f, KEY_MUTE },
14 { 0x10, KEY_BACKSPACE }, /* Recall */
16 { 0x11, KEY_NUMERIC_0 },
17 { 0x04, KEY_NUMERIC_1 },
18 { 0x05, KEY_NUMERIC_2 },
19 { 0x06, KEY_NUMERIC_3 },
20 { 0x08, KEY_NUMERIC_4 },
21 { 0x09, KEY_NUMERIC_5 },
22 { 0x0a, KEY_NUMERIC_6 },
23 { 0x0c, KEY_NUMERIC_7 },
24 { 0x0d, KEY_NUMERIC_8 },
25 { 0x0e, KEY_NUMERIC_9 },
26 { 0x12, KEY_DOT }, /* 100+ */
28 { 0x07, KEY_VOLUMEUP },
29 { 0x0b, KEY_VOLUMEDOWN },
30 { 0x1a, KEY_KPPLUS },
31 { 0x18, KEY_KPMINUS },
32 { 0x15, KEY_UP },
33 { 0x1d, KEY_DOWN },
34 { 0x0f, KEY_CHANNELUP },
35 { 0x13, KEY_CHANNELDOWN },
36 { 0x48, KEY_ZOOM },
38 { 0x1b, KEY_VIDEO }, /* Video source */
39 { 0x1f, KEY_CAMERA }, /* Snapshot */
40 { 0x49, KEY_LANGUAGE }, /* MTS Select */
41 { 0x19, KEY_SEARCH }, /* Auto Scan */
43 { 0x4b, KEY_RECORD },
44 { 0x46, KEY_PLAY },
45 { 0x45, KEY_PAUSE }, /* Pause */
46 { 0x44, KEY_STOP },
47 { 0x43, KEY_TIME }, /* Time Shift */
48 { 0x17, KEY_CHANNEL }, /* SURF CH */
49 { 0x40, KEY_FORWARD }, /* Forward ? */
50 { 0x42, KEY_REWIND }, /* Backward ? */
54 static struct rc_map_list purpletv_map = {
55 .map = {
56 .scan = purpletv,
57 .size = ARRAY_SIZE(purpletv),
58 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
59 .name = RC_MAP_PURPLETV,
63 static int __init init_rc_map_purpletv(void)
65 return rc_map_register(&purpletv_map);
68 static void __exit exit_rc_map_purpletv(void)
70 rc_map_unregister(&purpletv_map);
73 module_init(init_rc_map_purpletv)
74 module_exit(exit_rc_map_purpletv)
76 MODULE_LICENSE("GPL");
77 MODULE_AUTHOR("Mauro Carvalho Chehab");