1 /* purpletv.h - Keytable for purpletv Remote Controller 2 * 3 * keymap imported from ir-keymaps.c 4 * 5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> 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 15 static struct ir_scancode purpletv[] = { 16 { 0x03, KEY_POWER }, 17 { 0x6f, KEY_MUTE }, 18 { 0x10, KEY_BACKSPACE }, /* Recall */ 19 20 { 0x11, KEY_0 }, 21 { 0x04, KEY_1 }, 22 { 0x05, KEY_2 }, 23 { 0x06, KEY_3 }, 24 { 0x08, KEY_4 }, 25 { 0x09, KEY_5 }, 26 { 0x0a, KEY_6 }, 27 { 0x0c, KEY_7 }, 28 { 0x0d, KEY_8 }, 29 { 0x0e, KEY_9 }, 30 { 0x12, KEY_DOT }, /* 100+ */ 31 32 { 0x07, KEY_VOLUMEUP }, 33 { 0x0b, KEY_VOLUMEDOWN }, 34 { 0x1a, KEY_KPPLUS }, 35 { 0x18, KEY_KPMINUS }, 36 { 0x15, KEY_UP }, 37 { 0x1d, KEY_DOWN }, 38 { 0x0f, KEY_CHANNELUP }, 39 { 0x13, KEY_CHANNELDOWN }, 40 { 0x48, KEY_ZOOM }, 41 42 { 0x1b, KEY_VIDEO }, /* Video source */ 43 { 0x1f, KEY_CAMERA }, /* Snapshot */ 44 { 0x49, KEY_LANGUAGE }, /* MTS Select */ 45 { 0x19, KEY_SEARCH }, /* Auto Scan */ 46 47 { 0x4b, KEY_RECORD }, 48 { 0x46, KEY_PLAY }, 49 { 0x45, KEY_PAUSE }, /* Pause */ 50 { 0x44, KEY_STOP }, 51 { 0x43, KEY_TIME }, /* Time Shift */ 52 { 0x17, KEY_CHANNEL }, /* SURF CH */ 53 { 0x40, KEY_FORWARD }, /* Forward ? */ 54 { 0x42, KEY_REWIND }, /* Backward ? */ 55 56 }; 57 58 static struct rc_keymap purpletv_map = { 59 .map = { 60 .scan = purpletv, 61 .size = ARRAY_SIZE(purpletv), 62 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 63 .name = RC_MAP_PURPLETV, 64 } 65 }; 66 67 static int __init init_rc_map_purpletv(void) 68 { 69 return ir_register_map(&purpletv_map); 70 } 71 72 static void __exit exit_rc_map_purpletv(void) 73 { 74 ir_unregister_map(&purpletv_map); 75 } 76 77 module_init(init_rc_map_purpletv) 78 module_exit(exit_rc_map_purpletv) 79 80 MODULE_LICENSE("GPL"); 81 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 82