1 // SPDX-License-Identifier: GPL-2.0+
2 // dntv-live-dvb-t.h - Keytable for dntv_live_dvb_t 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 /* DigitalNow DNTV Live DVB-T Remote */
12
13 static struct rc_map_table dntv_live_dvb_t[] = {
14 { 0x00, KEY_ESC }, /* 'go up a level?' */
15 /* Keys 0 to 9 */
16 { 0x0a, KEY_NUMERIC_0 },
17 { 0x01, KEY_NUMERIC_1 },
18 { 0x02, KEY_NUMERIC_2 },
19 { 0x03, KEY_NUMERIC_3 },
20 { 0x04, KEY_NUMERIC_4 },
21 { 0x05, KEY_NUMERIC_5 },
22 { 0x06, KEY_NUMERIC_6 },
23 { 0x07, KEY_NUMERIC_7 },
24 { 0x08, KEY_NUMERIC_8 },
25 { 0x09, KEY_NUMERIC_9 },
26
27 { 0x0b, KEY_TUNER }, /* tv/fm */
28 { 0x0c, KEY_SEARCH }, /* scan */
29 { 0x0d, KEY_STOP },
30 { 0x0e, KEY_PAUSE },
31 { 0x0f, KEY_VIDEO }, /* source */
32
33 { 0x10, KEY_MUTE },
34 { 0x11, KEY_REWIND }, /* backward << */
35 { 0x12, KEY_POWER },
36 { 0x13, KEY_CAMERA }, /* snap */
37 { 0x14, KEY_AUDIO }, /* stereo */
38 { 0x15, KEY_CLEAR }, /* reset */
39 { 0x16, KEY_PLAY },
40 { 0x17, KEY_ENTER },
41 { 0x18, KEY_ZOOM }, /* full screen */
42 { 0x19, KEY_FASTFORWARD }, /* forward >> */
43 { 0x1a, KEY_CHANNELUP },
44 { 0x1b, KEY_VOLUMEUP },
45 { 0x1c, KEY_INFO }, /* preview */
46 { 0x1d, KEY_RECORD }, /* record */
47 { 0x1e, KEY_CHANNELDOWN },
48 { 0x1f, KEY_VOLUMEDOWN },
49 };
50
51 static struct rc_map_list dntv_live_dvb_t_map = {
52 .map = {
53 .scan = dntv_live_dvb_t,
54 .size = ARRAY_SIZE(dntv_live_dvb_t),
55 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
56 .name = RC_MAP_DNTV_LIVE_DVB_T,
57 }
58 };
59
init_rc_map_dntv_live_dvb_t(void)60 static int __init init_rc_map_dntv_live_dvb_t(void)
61 {
62 return rc_map_register(&dntv_live_dvb_t_map);
63 }
64
exit_rc_map_dntv_live_dvb_t(void)65 static void __exit exit_rc_map_dntv_live_dvb_t(void)
66 {
67 rc_map_unregister(&dntv_live_dvb_t_map);
68 }
69
70 module_init(init_rc_map_dntv_live_dvb_t)
71 module_exit(exit_rc_map_dntv_live_dvb_t)
72
73 MODULE_LICENSE("GPL");
74 MODULE_AUTHOR("Mauro Carvalho Chehab");
75