1 /* rc-su3000.h - Keytable for Geniatech HDStar Remote Controller
3 * Copyright (c) 2013 by Evgeny Plehov <Evgeny Plehov@ukr.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
11 #include <media/rc-map.h>
12 #include <linux/module.h>
14 static struct rc_map_table su3000
[] = {
15 { 0x25, KEY_POWER
}, /* right-bottom Red */
16 { 0x0a, KEY_MUTE
}, /* -/-- */
27 { 0x20, KEY_UP
}, /* CH+ */
28 { 0x21, KEY_DOWN
}, /* CH+ */
29 { 0x12, KEY_VOLUMEUP
}, /* Brightness Up */
30 { 0x13, KEY_VOLUMEDOWN
},/* Brightness Down */
35 { 0x27, KEY_FASTFORWARD
},/* >> */
36 { 0x26, KEY_REWIND
}, /* << */
37 { 0x0d, KEY_OK
}, /* Mute */
38 { 0x11, KEY_LEFT
}, /* VOL- */
39 { 0x10, KEY_RIGHT
}, /* VOL+ */
40 { 0x29, KEY_BACK
}, /* button under 9 */
41 { 0x2c, KEY_MENU
}, /* TTX */
42 { 0x2b, KEY_EPG
}, /* EPG */
43 { 0x1e, KEY_RED
}, /* OSD */
44 { 0x0e, KEY_GREEN
}, /* Window */
45 { 0x2d, KEY_YELLOW
}, /* button under << */
46 { 0x0f, KEY_BLUE
}, /* bottom yellow button */
47 { 0x14, KEY_AUDIO
}, /* Snapshot */
48 { 0x38, KEY_TV
}, /* TV/Radio */
49 { 0x0c, KEY_ESC
} /* upper Red button */
52 static struct rc_map_list su3000_map
= {
55 .size
= ARRAY_SIZE(su3000
),
56 .rc_type
= RC_TYPE_RC5
,
57 .name
= RC_MAP_SU3000
,
61 static int __init
init_rc_map_su3000(void)
63 return rc_map_register(&su3000_map
);
66 static void __exit
exit_rc_map_su3000(void)
68 rc_map_unregister(&su3000_map
);
71 module_init(init_rc_map_su3000
)
72 module_exit(exit_rc_map_su3000
)
74 MODULE_LICENSE("GPL");
75 MODULE_AUTHOR("Evgeny Plehov <Evgeny Plehov@ukr.net>");