1 /* gotview7135.h - Keytable for gotview7135 Remote Controller 2 * 3 * keymap imported from ir-keymaps.c 4 * 5 * Copyright (c) 2010 by Mauro Carvalho Chehab 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 */ 12 13 #include <media/rc-map.h> 14 #include <linux/module.h> 15 16 /* Mike Baikov <mike@baikov.com> */ 17 18 static struct rc_map_table gotview7135[] = { 19 20 { 0x11, KEY_POWER }, 21 { 0x35, KEY_TV }, 22 { 0x1b, KEY_0 }, 23 { 0x29, KEY_1 }, 24 { 0x19, KEY_2 }, 25 { 0x39, KEY_3 }, 26 { 0x1f, KEY_4 }, 27 { 0x2c, KEY_5 }, 28 { 0x21, KEY_6 }, 29 { 0x24, KEY_7 }, 30 { 0x18, KEY_8 }, 31 { 0x2b, KEY_9 }, 32 { 0x3b, KEY_AGAIN }, /* LOOP */ 33 { 0x06, KEY_AUDIO }, 34 { 0x31, KEY_PRINT }, /* PREVIEW */ 35 { 0x3e, KEY_VIDEO }, 36 { 0x10, KEY_CHANNELUP }, 37 { 0x20, KEY_CHANNELDOWN }, 38 { 0x0c, KEY_VOLUMEDOWN }, 39 { 0x28, KEY_VOLUMEUP }, 40 { 0x08, KEY_MUTE }, 41 { 0x26, KEY_SEARCH }, /* SCAN */ 42 { 0x3f, KEY_CAMERA }, /* SNAPSHOT */ 43 { 0x12, KEY_RECORD }, 44 { 0x32, KEY_STOP }, 45 { 0x3c, KEY_PLAY }, 46 { 0x1d, KEY_REWIND }, 47 { 0x2d, KEY_PAUSE }, 48 { 0x0d, KEY_FORWARD }, 49 { 0x05, KEY_ZOOM }, /*FULL*/ 50 51 { 0x2a, KEY_F21 }, /* LIVE TIMESHIFT */ 52 { 0x0e, KEY_F22 }, /* MIN TIMESHIFT */ 53 { 0x1e, KEY_TIME }, /* TIMESHIFT */ 54 { 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */ 55 }; 56 57 static struct rc_map_list gotview7135_map = { 58 .map = { 59 .scan = gotview7135, 60 .size = ARRAY_SIZE(gotview7135), 61 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 62 .name = RC_MAP_GOTVIEW7135, 63 } 64 }; 65 66 static int __init init_rc_map_gotview7135(void) 67 { 68 return rc_map_register(&gotview7135_map); 69 } 70 71 static void __exit exit_rc_map_gotview7135(void) 72 { 73 rc_map_unregister(&gotview7135_map); 74 } 75 76 module_init(init_rc_map_gotview7135) 77 module_exit(exit_rc_map_gotview7135) 78 79 MODULE_LICENSE("GPL"); 80 MODULE_AUTHOR("Mauro Carvalho Chehab"); 81