1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* videomate-k100.h - Keytable for videomate_k100 Remote Controller 3 * 4 * keymap imported from ir-keymaps.c 5 * 6 * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.com> 7 */ 8 9 #include <media/rc-map.h> 10 #include <linux/module.h> 11 12 static struct rc_map_table videomate_k100[] = { 13 { 0x01, KEY_POWER }, 14 { 0x31, KEY_TUNER }, 15 { 0x33, KEY_VIDEO }, 16 { 0x2f, KEY_RADIO }, 17 { 0x30, KEY_CAMERA }, 18 { 0x2d, KEY_NEW }, /* TV record button */ 19 { 0x17, KEY_CYCLEWINDOWS }, 20 { 0x2c, KEY_ANGLE }, 21 { 0x2b, KEY_LANGUAGE }, 22 { 0x32, KEY_SEARCH }, /* '...' button */ 23 { 0x11, KEY_UP }, 24 { 0x13, KEY_LEFT }, 25 { 0x15, KEY_OK }, 26 { 0x14, KEY_RIGHT }, 27 { 0x12, KEY_DOWN }, 28 { 0x16, KEY_BACKSPACE }, 29 { 0x02, KEY_ZOOM }, /* WIN key */ 30 { 0x04, KEY_INFO }, 31 { 0x05, KEY_VOLUMEUP }, 32 { 0x03, KEY_MUTE }, 33 { 0x07, KEY_CHANNELUP }, 34 { 0x06, KEY_VOLUMEDOWN }, 35 { 0x08, KEY_CHANNELDOWN }, 36 { 0x0c, KEY_RECORD }, 37 { 0x0e, KEY_STOP }, 38 { 0x0a, KEY_BACK }, 39 { 0x0b, KEY_PLAY }, 40 { 0x09, KEY_FORWARD }, 41 { 0x10, KEY_PREVIOUS }, 42 { 0x0d, KEY_PAUSE }, 43 { 0x0f, KEY_NEXT }, 44 { 0x1e, KEY_NUMERIC_1 }, 45 { 0x1f, KEY_NUMERIC_2 }, 46 { 0x20, KEY_NUMERIC_3 }, 47 { 0x21, KEY_NUMERIC_4 }, 48 { 0x22, KEY_NUMERIC_5 }, 49 { 0x23, KEY_NUMERIC_6 }, 50 { 0x24, KEY_NUMERIC_7 }, 51 { 0x25, KEY_NUMERIC_8 }, 52 { 0x26, KEY_NUMERIC_9 }, 53 { 0x2a, KEY_NUMERIC_STAR }, /* * key */ 54 { 0x1d, KEY_NUMERIC_0 }, 55 { 0x29, KEY_SUBTITLE }, /* # key */ 56 { 0x27, KEY_CLEAR }, 57 { 0x34, KEY_SCREEN }, 58 { 0x28, KEY_ENTER }, 59 { 0x19, KEY_RED }, 60 { 0x1a, KEY_GREEN }, 61 { 0x1b, KEY_YELLOW }, 62 { 0x1c, KEY_BLUE }, 63 { 0x18, KEY_TEXT }, 64 }; 65 66 static struct rc_map_list videomate_k100_map = { 67 .map = { 68 .scan = videomate_k100, 69 .size = ARRAY_SIZE(videomate_k100), 70 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 71 .name = RC_MAP_VIDEOMATE_K100, 72 } 73 }; 74 75 static int __init init_rc_map_videomate_k100(void) 76 { 77 return rc_map_register(&videomate_k100_map); 78 } 79 80 static void __exit exit_rc_map_videomate_k100(void) 81 { 82 rc_map_unregister(&videomate_k100_map); 83 } 84 85 module_init(init_rc_map_videomate_k100) 86 module_exit(exit_rc_map_videomate_k100) 87 88 MODULE_LICENSE("GPL"); 89 MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>"); 90