rc-terratec-cinergy-xs.c (2059B)
1// SPDX-License-Identifier: GPL-2.0+ 2// terratec-cinergy-xs.h - Keytable for terratec_cinergy_xs Remote Controller 3// 4// keymap imported from ir-keymaps.c 5// 6// Copyright (c) 2010 by Mauro Carvalho Chehab 7 8#include <media/rc-map.h> 9#include <linux/module.h> 10 11/* Terratec Cinergy Hybrid T USB XS 12 Devin Heitmueller <dheitmueller@linuxtv.org> 13 */ 14 15static struct rc_map_table terratec_cinergy_xs[] = { 16 { 0x41, KEY_HOME}, 17 { 0x01, KEY_POWER}, 18 { 0x42, KEY_MENU}, 19 { 0x02, KEY_NUMERIC_1}, 20 { 0x03, KEY_NUMERIC_2}, 21 { 0x04, KEY_NUMERIC_3}, 22 { 0x43, KEY_SUBTITLE}, 23 { 0x05, KEY_NUMERIC_4}, 24 { 0x06, KEY_NUMERIC_5}, 25 { 0x07, KEY_NUMERIC_6}, 26 { 0x44, KEY_TEXT}, 27 { 0x08, KEY_NUMERIC_7}, 28 { 0x09, KEY_NUMERIC_8}, 29 { 0x0a, KEY_NUMERIC_9}, 30 { 0x45, KEY_DELETE}, 31 { 0x0b, KEY_TUNER}, 32 { 0x0c, KEY_NUMERIC_0}, 33 { 0x0d, KEY_MODE}, 34 { 0x46, KEY_TV}, 35 { 0x47, KEY_DVD}, 36 { 0x49, KEY_VIDEO}, 37 { 0x4b, KEY_AUX}, 38 { 0x10, KEY_UP}, 39 { 0x11, KEY_LEFT}, 40 { 0x12, KEY_OK}, 41 { 0x13, KEY_RIGHT}, 42 { 0x14, KEY_DOWN}, 43 { 0x0f, KEY_EPG}, 44 { 0x16, KEY_INFO}, 45 { 0x4d, KEY_BACKSPACE}, 46 { 0x1c, KEY_VOLUMEUP}, 47 { 0x4c, KEY_PLAY}, 48 { 0x1b, KEY_CHANNELUP}, 49 { 0x1e, KEY_VOLUMEDOWN}, 50 { 0x1d, KEY_MUTE}, 51 { 0x1f, KEY_CHANNELDOWN}, 52 { 0x17, KEY_RED}, 53 { 0x18, KEY_GREEN}, 54 { 0x19, KEY_YELLOW}, 55 { 0x1a, KEY_BLUE}, 56 { 0x58, KEY_RECORD}, 57 { 0x48, KEY_STOP}, 58 { 0x40, KEY_PAUSE}, 59 { 0x54, KEY_LAST}, 60 { 0x4e, KEY_REWIND}, 61 { 0x4f, KEY_FASTFORWARD}, 62 { 0x5c, KEY_NEXT}, 63}; 64 65static struct rc_map_list terratec_cinergy_xs_map = { 66 .map = { 67 .scan = terratec_cinergy_xs, 68 .size = ARRAY_SIZE(terratec_cinergy_xs), 69 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 70 .name = RC_MAP_TERRATEC_CINERGY_XS, 71 } 72}; 73 74static int __init init_rc_map_terratec_cinergy_xs(void) 75{ 76 return rc_map_register(&terratec_cinergy_xs_map); 77} 78 79static void __exit exit_rc_map_terratec_cinergy_xs(void) 80{ 81 rc_map_unregister(&terratec_cinergy_xs_map); 82} 83 84module_init(init_rc_map_terratec_cinergy_xs) 85module_exit(exit_rc_map_terratec_cinergy_xs) 86 87MODULE_LICENSE("GPL"); 88MODULE_AUTHOR("Mauro Carvalho Chehab");