1 /* rc-technisat-ts35.c - Keytable for TechniSat TS35 remote 2 * 3 * Copyright (c) 2013 by Jan Klötzke <jan@kloetzke.net> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation; either version 2 of the 8 * License, or (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 technisat_ts35[] = { 15 {0x32, KEY_MUTE}, 16 {0x07, KEY_MEDIA}, 17 {0x1c, KEY_AB}, 18 {0x33, KEY_POWER}, 19 20 {0x3e, KEY_1}, 21 {0x3d, KEY_2}, 22 {0x3c, KEY_3}, 23 {0x3b, KEY_4}, 24 {0x3a, KEY_5}, 25 {0x39, KEY_6}, 26 {0x38, KEY_7}, 27 {0x37, KEY_8}, 28 {0x36, KEY_9}, 29 {0x3f, KEY_0}, 30 {0x35, KEY_DIGITS}, 31 {0x2c, KEY_TV}, 32 33 {0x20, KEY_INFO}, 34 {0x2d, KEY_MENU}, 35 {0x1f, KEY_UP}, 36 {0x1e, KEY_DOWN}, 37 {0x2e, KEY_LEFT}, 38 {0x2f, KEY_RIGHT}, 39 {0x28, KEY_OK}, 40 {0x10, KEY_EPG}, 41 {0x1d, KEY_BACK}, 42 43 {0x14, KEY_RED}, 44 {0x13, KEY_GREEN}, 45 {0x12, KEY_YELLOW}, 46 {0x11, KEY_BLUE}, 47 48 {0x09, KEY_SELECT}, 49 {0x03, KEY_TEXT}, 50 {0x16, KEY_STOP}, 51 {0x30, KEY_HELP}, 52 }; 53 54 static struct rc_map_list technisat_ts35_map = { 55 .map = { 56 .scan = technisat_ts35, 57 .size = ARRAY_SIZE(technisat_ts35), 58 .rc_type = RC_TYPE_UNKNOWN, 59 .name = RC_MAP_TECHNISAT_TS35, 60 } 61 }; 62 63 static int __init init_rc_map(void) 64 { 65 return rc_map_register(&technisat_ts35_map); 66 } 67 68 static void __exit exit_rc_map(void) 69 { 70 rc_map_unregister(&technisat_ts35_map); 71 } 72 73 module_init(init_rc_map) 74 module_exit(exit_rc_map) 75 76 MODULE_LICENSE("GPL"); 77