1 /* 2 * keymap imported from cxusb.c 3 * 4 * Copyright (C) 2016 Sean Young 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; version 2. 9 */ 10 11 #include <media/rc-map.h> 12 #include <linux/module.h> 13 14 static struct rc_map_table rc_map_dvico_portable_table[] = { 15 { 0x0302, KEY_SETUP }, /* Profile */ 16 { 0x0343, KEY_POWER2 }, 17 { 0x0306, KEY_EPG }, 18 { 0x035a, KEY_BACK }, 19 { 0x0305, KEY_MENU }, 20 { 0x0347, KEY_INFO }, 21 { 0x0301, KEY_TAB }, 22 { 0x0342, KEY_PREVIOUSSONG },/* Replay */ 23 { 0x0349, KEY_VOLUMEUP }, 24 { 0x0309, KEY_VOLUMEDOWN }, 25 { 0x0354, KEY_CHANNELUP }, 26 { 0x030b, KEY_CHANNELDOWN }, 27 { 0x0316, KEY_CAMERA }, 28 { 0x0340, KEY_TUNER }, /* ATV/DTV */ 29 { 0x0345, KEY_OPEN }, 30 { 0x0319, KEY_1 }, 31 { 0x0318, KEY_2 }, 32 { 0x031b, KEY_3 }, 33 { 0x031a, KEY_4 }, 34 { 0x0358, KEY_5 }, 35 { 0x0359, KEY_6 }, 36 { 0x0315, KEY_7 }, 37 { 0x0314, KEY_8 }, 38 { 0x0317, KEY_9 }, 39 { 0x0344, KEY_ANGLE }, /* Aspect */ 40 { 0x0355, KEY_0 }, 41 { 0x0307, KEY_ZOOM }, 42 { 0x030a, KEY_REWIND }, 43 { 0x0308, KEY_PLAYPAUSE }, 44 { 0x034b, KEY_FASTFORWARD }, 45 { 0x035b, KEY_MUTE }, 46 { 0x0304, KEY_STOP }, 47 { 0x0356, KEY_RECORD }, 48 { 0x0357, KEY_POWER }, 49 { 0x0341, KEY_UNKNOWN }, /* INPUT */ 50 { 0x0300, KEY_UNKNOWN }, /* HD */ 51 }; 52 53 static struct rc_map_list dvico_portable_map = { 54 .map = { 55 .scan = rc_map_dvico_portable_table, 56 .size = ARRAY_SIZE(rc_map_dvico_portable_table), 57 .rc_proto = RC_PROTO_NEC, 58 .name = RC_MAP_DVICO_PORTABLE, 59 } 60 }; 61 62 static int __init init_rc_map_dvico_portable(void) 63 { 64 return rc_map_register(&dvico_portable_map); 65 } 66 67 static void __exit exit_rc_map_dvico_portable(void) 68 { 69 rc_map_unregister(&dvico_portable_map); 70 } 71 72 module_init(init_rc_map_dvico_portable) 73 module_exit(exit_rc_map_dvico_portable) 74 75 MODULE_LICENSE("GPL"); 76 MODULE_AUTHOR("Mauro Carvalho Chehab"); 77