1 /* LME2510 remote control
4 * Copyright (C) 2010 Malcolm Priestley (tvboxspy@gmail.com)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #include <media/rc-map.h>
15 static struct rc_map_table lme2510_rc[] = {
16 /* Type 1 - 26 buttons */
27 { 0x10ed43, KEY_POWER },
28 { 0x10ed46, KEY_SUBTITLE },
29 { 0x10ed06, KEY_PAUSE },
30 { 0x10ed03, KEY_MEDIA_REPEAT},
31 { 0x10ed02, KEY_PAUSE },
32 { 0x10ed5e, KEY_VOLUMEUP },
33 { 0x10ed5c, KEY_VOLUMEDOWN },
34 { 0x10ed09, KEY_CHANNELUP },
35 { 0x10ed1a, KEY_CHANNELDOWN },
36 { 0x10ed1e, KEY_PLAY },
37 { 0x10ed1b, KEY_ZOOM },
38 { 0x10ed59, KEY_MUTE },
40 { 0x10ed18, KEY_RECORD },
41 { 0x10ed07, KEY_EPG },
42 { 0x10ed01, KEY_STOP },
43 /* Type 2 - 20 buttons */
54 { 0xbf00, KEY_POWER },
55 { 0xbf04, KEY_MEDIA_REPEAT}, /* Recall */
56 { 0xbf1a, KEY_PAUSE }, /* Timeshift */
57 { 0xbf02, KEY_VOLUMEUP }, /* 2 x -/+ Keys not marked */
58 { 0xbf06, KEY_VOLUMEDOWN }, /* Volume defined as right hand*/
59 { 0xbf01, KEY_CHANNELUP },
60 { 0xbf05, KEY_CHANNELDOWN },
62 { 0xbf18, KEY_RECORD },
64 /* Type 3 - 20 buttons */
76 { 0x44, KEY_MEDIA_REPEAT}, /* Recall */
77 { 0x4a, KEY_PAUSE }, /* Timeshift */
78 { 0x47, KEY_VOLUMEUP }, /* 2 x -/+ Keys not marked */
79 { 0x43, KEY_VOLUMEDOWN }, /* Volume defined as right hand*/
80 { 0x46, KEY_CHANNELUP },
81 { 0x40, KEY_CHANNELDOWN },
87 static struct rc_map_list lme2510_map = {
90 .size = ARRAY_SIZE(lme2510_rc),
91 .rc_type = RC_TYPE_NEC,
92 .name = RC_MAP_LME2510,
96 static int __init init_rc_lme2510_map(void)
98 return rc_map_register(&lme2510_map);
101 static void __exit exit_rc_lme2510_map(void)
103 rc_map_unregister(&lme2510_map);
106 module_init(init_rc_lme2510_map)
107 module_exit(exit_rc_lme2510_map)
109 MODULE_LICENSE("GPL");
110 MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com");