1 /* proteus-2309.h - Keytable for proteus_2309 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>
15 /* Michal Majchrowicz <mmajchrowicz@gmail.com> */
17 static struct ir_scancode proteus_2309[] = {
30 { 0x5c, KEY_POWER }, /* power */
31 { 0x20, KEY_ZOOM }, /* full screen */
32 { 0x0f, KEY_BACKSPACE }, /* recall */
33 { 0x1b, KEY_ENTER }, /* mute */
34 { 0x41, KEY_RECORD }, /* record */
35 { 0x43, KEY_STOP }, /* stop */
37 { 0x1a, KEY_POWER2 }, /* off */
39 { 0x1f, KEY_CHANNELDOWN }, /* channel - */
40 { 0x1c, KEY_CHANNELUP }, /* channel + */
41 { 0x10, KEY_VOLUMEDOWN }, /* volume - */
42 { 0x1e, KEY_VOLUMEUP }, /* volume + */
46 static struct rc_keymap proteus_2309_map = {
49 .size = ARRAY_SIZE(proteus_2309),
50 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
51 .name = RC_MAP_PROTEUS_2309,
55 static int __init init_rc_map_proteus_2309(void)
57 return ir_register_map(&proteus_2309_map);
60 static void __exit exit_rc_map_proteus_2309(void)
62 ir_unregister_map(&proteus_2309_map);
65 module_init(init_rc_map_proteus_2309)
66 module_exit(exit_rc_map_proteus_2309)
68 MODULE_LICENSE("GPL");
69 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");