1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* rc-technisat-ts35.c - Keytable for TechniSat TS35 remote 3 * 4 * Copyright (c) 2013 by Jan Klötzke <jan@kloetzke.net> 5 */ 6 7 #include <media/rc-map.h> 8 #include <linux/module.h> 9 10 static struct rc_map_table technisat_ts35[] = { 11 {0x32, KEY_MUTE}, 12 {0x07, KEY_MEDIA}, 13 {0x1c, KEY_AB}, 14 {0x33, KEY_POWER}, 15 16 {0x3e, KEY_NUMERIC_1}, 17 {0x3d, KEY_NUMERIC_2}, 18 {0x3c, KEY_NUMERIC_3}, 19 {0x3b, KEY_NUMERIC_4}, 20 {0x3a, KEY_NUMERIC_5}, 21 {0x39, KEY_NUMERIC_6}, 22 {0x38, KEY_NUMERIC_7}, 23 {0x37, KEY_NUMERIC_8}, 24 {0x36, KEY_NUMERIC_9}, 25 {0x3f, KEY_NUMERIC_0}, 26 {0x35, KEY_DIGITS}, 27 {0x2c, KEY_TV}, 28 29 {0x20, KEY_INFO}, 30 {0x2d, KEY_MENU}, 31 {0x1f, KEY_UP}, 32 {0x1e, KEY_DOWN}, 33 {0x2e, KEY_LEFT}, 34 {0x2f, KEY_RIGHT}, 35 {0x28, KEY_OK}, 36 {0x10, KEY_EPG}, 37 {0x1d, KEY_BACK}, 38 39 {0x14, KEY_RED}, 40 {0x13, KEY_GREEN}, 41 {0x12, KEY_YELLOW}, 42 {0x11, KEY_BLUE}, 43 44 {0x09, KEY_SELECT}, 45 {0x03, KEY_TEXT}, 46 {0x16, KEY_STOP}, 47 {0x30, KEY_HELP}, 48 }; 49 50 static struct rc_map_list technisat_ts35_map = { 51 .map = { 52 .scan = technisat_ts35, 53 .size = ARRAY_SIZE(technisat_ts35), 54 .rc_proto = RC_PROTO_UNKNOWN, 55 .name = RC_MAP_TECHNISAT_TS35, 56 } 57 }; 58 59 static int __init init_rc_map(void) 60 { 61 return rc_map_register(&technisat_ts35_map); 62 } 63 64 static void __exit exit_rc_map(void) 65 { 66 rc_map_unregister(&technisat_ts35_map); 67 } 68 69 module_init(init_rc_map) 70 module_exit(exit_rc_map) 71 72 MODULE_LICENSE("GPL"); 73 MODULE_DESCRIPTION("TechniSat TS35 remote controller keytable"); 74