1 /* gadmei-rm008z.h - Keytable for gadmei_rm008z Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
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.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 /* GADMEI UTV330+ RM008Z remote
17 Shine Liu <shinel@foxmail.com>
20 static struct rc_map_table gadmei_rm008z
[] = {
21 { 0x14, KEY_POWER2
}, /* POWER OFF */
22 { 0x0c, KEY_MUTE
}, /* MUTE */
24 { 0x18, KEY_TV
}, /* TV */
25 { 0x0e, KEY_VIDEO
}, /* AV */
26 { 0x0b, KEY_AUDIO
}, /* SV */
27 { 0x0f, KEY_RADIO
}, /* FM */
39 { 0x0a, KEY_INFO
}, /* OSD */
40 { 0x1c, KEY_BACKSPACE
}, /* LAST */
42 { 0x0d, KEY_PLAY
}, /* PLAY */
43 { 0x1e, KEY_CAMERA
}, /* SNAPSHOT */
44 { 0x1a, KEY_RECORD
}, /* RECORD */
45 { 0x17, KEY_STOP
}, /* STOP */
47 { 0x1f, KEY_UP
}, /* UP */
48 { 0x44, KEY_DOWN
}, /* DOWN */
49 { 0x46, KEY_TAB
}, /* BACK */
50 { 0x4a, KEY_ZOOM
}, /* FULLSECREEN */
52 { 0x10, KEY_VOLUMEUP
}, /* VOLUMEUP */
53 { 0x11, KEY_VOLUMEDOWN
}, /* VOLUMEDOWN */
54 { 0x12, KEY_CHANNELUP
}, /* CHANNELUP */
55 { 0x13, KEY_CHANNELDOWN
}, /* CHANNELDOWN */
56 { 0x15, KEY_ENTER
}, /* OK */
59 static struct rc_map_list gadmei_rm008z_map
= {
61 .scan
= gadmei_rm008z
,
62 .size
= ARRAY_SIZE(gadmei_rm008z
),
63 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
64 .name
= RC_MAP_GADMEI_RM008Z
,
68 static int __init
init_rc_map_gadmei_rm008z(void)
70 return rc_map_register(&gadmei_rm008z_map
);
73 static void __exit
exit_rc_map_gadmei_rm008z(void)
75 rc_map_unregister(&gadmei_rm008z_map
);
78 module_init(init_rc_map_gadmei_rm008z
)
79 module_exit(exit_rc_map_gadmei_rm008z
)
81 MODULE_LICENSE("GPL");
82 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");