Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] rc/keymaps: add RC keytable for TechniSat TS35

The TS35 remote is distributed with TechniSat CableStar HD2 cards (mantis
chipset). The exact protocol type is unknown, making this rc map probably only
usable by mantis cards.

Signed-off-by: Jan Klötzke <jan@kloetzke.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Jan Klötzke and committed by
Mauro Carvalho Chehab
9b6a065e 8d7e5063

+78
+1
drivers/media/rc/keymaps/Makefile
··· 84 84 rc-snapstream-firefly.o \ 85 85 rc-streamzap.o \ 86 86 rc-tbs-nec.o \ 87 + rc-technisat-ts35.o \ 87 88 rc-technisat-usb2.o \ 88 89 rc-terratec-cinergy-xs.o \ 89 90 rc-terratec-slim.o \
+76
drivers/media/rc/keymaps/rc-technisat-ts35.c
··· 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");
+1
include/media/rc-map.h
··· 194 194 #define RC_MAP_SNAPSTREAM_FIREFLY "rc-snapstream-firefly" 195 195 #define RC_MAP_STREAMZAP "rc-streamzap" 196 196 #define RC_MAP_TBS_NEC "rc-tbs-nec" 197 + #define RC_MAP_TECHNISAT_TS35 "rc-technisat-ts35" 197 198 #define RC_MAP_TECHNISAT_USB2 "rc-technisat-usb2" 198 199 #define RC_MAP_TERRATEC_CINERGY_XS "rc-terratec-cinergy-xs" 199 200 #define RC_MAP_TERRATEC_SLIM "rc-terratec-slim"