1 // SPDX-License-Identifier: GPL-2.0+
2 // avermedia-dvbt.h - Keytable for avermedia_dvbt Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* Matt Jesson <dvb@jesson.eclipse.co.uk */
13 static struct rc_map_table avermedia_dvbt
[] = {
14 { 0x28, KEY_NUMERIC_0
}, /* '0' / 'enter' */
15 { 0x22, KEY_NUMERIC_1
}, /* '1' */
16 { 0x12, KEY_NUMERIC_2
}, /* '2' / 'up arrow' */
17 { 0x32, KEY_NUMERIC_3
}, /* '3' */
18 { 0x24, KEY_NUMERIC_4
}, /* '4' / 'left arrow' */
19 { 0x14, KEY_NUMERIC_5
}, /* '5' */
20 { 0x34, KEY_NUMERIC_6
}, /* '6' / 'right arrow' */
21 { 0x26, KEY_NUMERIC_7
}, /* '7' */
22 { 0x16, KEY_NUMERIC_8
}, /* '8' / 'down arrow' */
23 { 0x36, KEY_NUMERIC_9
}, /* '9' */
25 { 0x20, KEY_VIDEO
}, /* 'source' */
26 { 0x10, KEY_TEXT
}, /* 'teletext' */
27 { 0x00, KEY_POWER
}, /* 'power' */
28 { 0x04, KEY_AUDIO
}, /* 'audio' */
29 { 0x06, KEY_ZOOM
}, /* 'full screen' */
30 { 0x18, KEY_SWITCHVIDEOMODE
}, /* 'display' */
31 { 0x38, KEY_SEARCH
}, /* 'loop' */
32 { 0x08, KEY_INFO
}, /* 'preview' */
33 { 0x2a, KEY_REWIND
}, /* 'backward <<' */
34 { 0x1a, KEY_FASTFORWARD
}, /* 'forward >>' */
35 { 0x3a, KEY_RECORD
}, /* 'capture' */
36 { 0x0a, KEY_MUTE
}, /* 'mute' */
37 { 0x2c, KEY_RECORD
}, /* 'record' */
38 { 0x1c, KEY_PAUSE
}, /* 'pause' */
39 { 0x3c, KEY_STOP
}, /* 'stop' */
40 { 0x0c, KEY_PLAY
}, /* 'play' */
41 { 0x2e, KEY_RED
}, /* 'red' */
42 { 0x01, KEY_BLUE
}, /* 'blue' / 'cancel' */
43 { 0x0e, KEY_YELLOW
}, /* 'yellow' / 'ok' */
44 { 0x21, KEY_GREEN
}, /* 'green' */
45 { 0x11, KEY_CHANNELDOWN
}, /* 'channel -' */
46 { 0x31, KEY_CHANNELUP
}, /* 'channel +' */
47 { 0x1e, KEY_VOLUMEDOWN
}, /* 'volume -' */
48 { 0x3e, KEY_VOLUMEUP
}, /* 'volume +' */
51 static struct rc_map_list avermedia_dvbt_map
= {
53 .scan
= avermedia_dvbt
,
54 .size
= ARRAY_SIZE(avermedia_dvbt
),
55 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
56 .name
= RC_MAP_AVERMEDIA_DVBT
,
60 static int __init
init_rc_map_avermedia_dvbt(void)
62 return rc_map_register(&avermedia_dvbt_map
);
65 static void __exit
exit_rc_map_avermedia_dvbt(void)
67 rc_map_unregister(&avermedia_dvbt_map
);
70 module_init(init_rc_map_avermedia_dvbt
)
71 module_exit(exit_rc_map_avermedia_dvbt
)
73 MODULE_LICENSE("GPL");
74 MODULE_AUTHOR("Mauro Carvalho Chehab");