Loading...
1// SPDX-License-Identifier: GPL-2.0+
2// rc-pixelview-mk12.h - Keytable for pixelview Remote Controller
3//
4// keymap imported from ir-keymaps.c
5//
6// Copyright (c) 2010 by Mauro Carvalho Chehab
7
8#include <media/rc-map.h>
9#include <linux/module.h>
10
11/*
12 * Keytable for 002-T IR remote provided together with Pixelview
13 * SBTVD Hybrid Remote Controller. Uses NEC extended format.
14 */
15static struct rc_map_table pixelview_002t[] = {
16 { 0x866b13, KEY_MUTE },
17 { 0x866b12, KEY_POWER2 }, /* power */
18
19 { 0x866b01, KEY_NUMERIC_1 },
20 { 0x866b02, KEY_NUMERIC_2 },
21 { 0x866b03, KEY_NUMERIC_3 },
22 { 0x866b04, KEY_NUMERIC_4 },
23 { 0x866b05, KEY_NUMERIC_5 },
24 { 0x866b06, KEY_NUMERIC_6 },
25 { 0x866b07, KEY_NUMERIC_7 },
26 { 0x866b08, KEY_NUMERIC_8 },
27 { 0x866b09, KEY_NUMERIC_9 },
28 { 0x866b00, KEY_NUMERIC_0 },
29
30 { 0x866b0d, KEY_CHANNELUP },
31 { 0x866b19, KEY_CHANNELDOWN },
32 { 0x866b10, KEY_VOLUMEUP }, /* vol + */
33 { 0x866b0c, KEY_VOLUMEDOWN }, /* vol - */
34
35 { 0x866b0a, KEY_CAMERA }, /* snapshot */
36 { 0x866b0b, KEY_ZOOM }, /* zoom */
37
38 { 0x866b1b, KEY_BACKSPACE },
39 { 0x866b15, KEY_ENTER },
40
41 { 0x866b1d, KEY_UP },
42 { 0x866b1e, KEY_DOWN },
43 { 0x866b0e, KEY_LEFT },
44 { 0x866b0f, KEY_RIGHT },
45
46 { 0x866b18, KEY_RECORD },
47 { 0x866b1a, KEY_STOP },
48};
49
50static struct rc_map_list pixelview_map = {
51 .map = {
52 .scan = pixelview_002t,
53 .size = ARRAY_SIZE(pixelview_002t),
54 .rc_proto = RC_PROTO_NECX,
55 .name = RC_MAP_PIXELVIEW_002T,
56 }
57};
58
59static int __init init_rc_map_pixelview(void)
60{
61 return rc_map_register(&pixelview_map);
62}
63
64static void __exit exit_rc_map_pixelview(void)
65{
66 rc_map_unregister(&pixelview_map);
67}
68
69module_init(init_rc_map_pixelview)
70module_exit(exit_rc_map_pixelview)
71
72MODULE_LICENSE("GPL");
73MODULE_AUTHOR("Mauro Carvalho Chehab");
74MODULE_DESCRIPTION("002-T IR remote keytable");
1/* rc-pixelview-mk12.h - Keytable for pixelview Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13#include <media/rc-map.h>
14#include <linux/module.h>
15
16/*
17 * Keytable for 002-T IR remote provided together with Pixelview
18 * SBTVD Hybrid Remote Controller. Uses NEC extended format.
19 */
20static struct rc_map_table pixelview_002t[] = {
21 { 0x866b13, KEY_MUTE },
22 { 0x866b12, KEY_POWER2 }, /* power */
23
24 { 0x866b01, KEY_1 },
25 { 0x866b02, KEY_2 },
26 { 0x866b03, KEY_3 },
27 { 0x866b04, KEY_4 },
28 { 0x866b05, KEY_5 },
29 { 0x866b06, KEY_6 },
30 { 0x866b07, KEY_7 },
31 { 0x866b08, KEY_8 },
32 { 0x866b09, KEY_9 },
33 { 0x866b00, KEY_0 },
34
35 { 0x866b0d, KEY_CHANNELUP },
36 { 0x866b19, KEY_CHANNELDOWN },
37 { 0x866b10, KEY_VOLUMEUP }, /* vol + */
38 { 0x866b0c, KEY_VOLUMEDOWN }, /* vol - */
39
40 { 0x866b0a, KEY_CAMERA }, /* snapshot */
41 { 0x866b0b, KEY_ZOOM }, /* zoom */
42
43 { 0x866b1b, KEY_BACKSPACE },
44 { 0x866b15, KEY_ENTER },
45
46 { 0x866b1d, KEY_UP },
47 { 0x866b1e, KEY_DOWN },
48 { 0x866b0e, KEY_LEFT },
49 { 0x866b0f, KEY_RIGHT },
50
51 { 0x866b18, KEY_RECORD },
52 { 0x866b1a, KEY_STOP },
53};
54
55static struct rc_map_list pixelview_map = {
56 .map = {
57 .scan = pixelview_002t,
58 .size = ARRAY_SIZE(pixelview_002t),
59 .rc_type = RC_TYPE_NEC,
60 .name = RC_MAP_PIXELVIEW_002T,
61 }
62};
63
64static int __init init_rc_map_pixelview(void)
65{
66 return rc_map_register(&pixelview_map);
67}
68
69static void __exit exit_rc_map_pixelview(void)
70{
71 rc_map_unregister(&pixelview_map);
72}
73
74module_init(init_rc_map_pixelview)
75module_exit(exit_rc_map_pixelview)
76
77MODULE_LICENSE("GPL");
78MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");