1 /* rc-su3000.h - Keytable for Geniatech HDStar Remote Controller 2 * 3 * Copyright (c) 2013 by Evgeny Plehov <Evgeny Plehov@ukr.net> 4 * 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. 9 */ 10 11 #include <media/rc-map.h> 12 #include <linux/module.h> 13 14 static struct rc_map_table su3000[] = { 15 { 0x25, KEY_POWER }, /* right-bottom Red */ 16 { 0x0a, KEY_MUTE }, /* -/-- */ 17 { 0x01, KEY_1 }, 18 { 0x02, KEY_2 }, 19 { 0x03, KEY_3 }, 20 { 0x04, KEY_4 }, 21 { 0x05, KEY_5 }, 22 { 0x06, KEY_6 }, 23 { 0x07, KEY_7 }, 24 { 0x08, KEY_8 }, 25 { 0x09, KEY_9 }, 26 { 0x00, KEY_0 }, 27 { 0x20, KEY_UP }, /* CH+ */ 28 { 0x21, KEY_DOWN }, /* CH+ */ 29 { 0x12, KEY_VOLUMEUP }, /* Brightness Up */ 30 { 0x13, KEY_VOLUMEDOWN },/* Brightness Down */ 31 { 0x1f, KEY_RECORD }, 32 { 0x17, KEY_PLAY }, 33 { 0x16, KEY_PAUSE }, 34 { 0x0b, KEY_STOP }, 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 */ 50 }; 51 52 static struct rc_map_list su3000_map = { 53 .map = { 54 .scan = su3000, 55 .size = ARRAY_SIZE(su3000), 56 .rc_type = RC_TYPE_RC5, 57 .name = RC_MAP_SU3000, 58 } 59 }; 60 61 static int __init init_rc_map_su3000(void) 62 { 63 return rc_map_register(&su3000_map); 64 } 65 66 static void __exit exit_rc_map_su3000(void) 67 { 68 rc_map_unregister(&su3000_map); 69 } 70 71 module_init(init_rc_map_su3000) 72 module_exit(exit_rc_map_su3000) 73 74 MODULE_LICENSE("GPL"); 75 MODULE_AUTHOR("Evgeny Plehov <Evgeny Plehov@ukr.net>"); 76