WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-pixelview-new.c
blob0259666831b06c9e69f96a55f4699ce35a1f8562
1 // SPDX-License-Identifier: GPL-2.0+
2 // pixelview-new.h - Keytable for pixelview_new 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>
12 Mauro Carvalho Chehab <mchehab@kernel.org>
13 present on PV MPEG 8000GT
16 static struct rc_map_table pixelview_new[] = {
17 { 0x3c, KEY_TIME }, /* Timeshift */
18 { 0x12, KEY_POWER },
20 { 0x3d, KEY_NUMERIC_1 },
21 { 0x38, KEY_NUMERIC_2 },
22 { 0x18, KEY_NUMERIC_3 },
23 { 0x35, KEY_NUMERIC_4 },
24 { 0x39, KEY_NUMERIC_5 },
25 { 0x15, KEY_NUMERIC_6 },
26 { 0x36, KEY_NUMERIC_7 },
27 { 0x3a, KEY_NUMERIC_8 },
28 { 0x1e, KEY_NUMERIC_9 },
29 { 0x3e, KEY_NUMERIC_0 },
31 { 0x1c, KEY_AGAIN }, /* LOOP */
32 { 0x3f, KEY_VIDEO }, /* Source */
33 { 0x1f, KEY_LAST }, /* +100 */
34 { 0x1b, KEY_MUTE },
36 { 0x17, KEY_CHANNELDOWN },
37 { 0x16, KEY_CHANNELUP },
38 { 0x10, KEY_VOLUMEUP },
39 { 0x14, KEY_VOLUMEDOWN },
40 { 0x13, KEY_ZOOM },
42 { 0x19, KEY_CAMERA }, /* SNAPSHOT */
43 { 0x1a, KEY_SEARCH }, /* scan */
45 { 0x37, KEY_REWIND }, /* << */
46 { 0x32, KEY_RECORD }, /* o (red) */
47 { 0x33, KEY_FORWARD }, /* >> */
48 { 0x11, KEY_STOP }, /* square */
49 { 0x3b, KEY_PLAY }, /* > */
50 { 0x30, KEY_PLAYPAUSE }, /* || */
52 { 0x31, KEY_TV },
53 { 0x34, KEY_RADIO },
56 static struct rc_map_list pixelview_new_map = {
57 .map = {
58 .scan = pixelview_new,
59 .size = ARRAY_SIZE(pixelview_new),
60 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
61 .name = RC_MAP_PIXELVIEW_NEW,
65 static int __init init_rc_map_pixelview_new(void)
67 return rc_map_register(&pixelview_new_map);
70 static void __exit exit_rc_map_pixelview_new(void)
72 rc_map_unregister(&pixelview_new_map);
75 module_init(init_rc_map_pixelview_new)
76 module_exit(exit_rc_map_pixelview_new)
78 MODULE_LICENSE("GPL");
79 MODULE_AUTHOR("Mauro Carvalho Chehab");