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_mce_table[] = { 15 { 0x0102, KEY_TV }, 16 { 0x010e, KEY_MP3 }, 17 { 0x011a, KEY_DVD }, 18 { 0x011e, KEY_FAVORITES }, 19 { 0x0116, KEY_SETUP }, 20 { 0x0146, KEY_POWER2 }, 21 { 0x010a, KEY_EPG }, 22 { 0x0149, KEY_BACK }, 23 { 0x014d, KEY_MENU }, 24 { 0x0151, KEY_UP }, 25 { 0x015b, KEY_LEFT }, 26 { 0x015f, KEY_RIGHT }, 27 { 0x0153, KEY_DOWN }, 28 { 0x015e, KEY_OK }, 29 { 0x0159, KEY_INFO }, 30 { 0x0155, KEY_TAB }, 31 { 0x010f, KEY_PREVIOUSSONG },/* Replay */ 32 { 0x0112, KEY_NEXTSONG }, /* Skip */ 33 { 0x0142, KEY_ENTER }, /* Windows/Start */ 34 { 0x0115, KEY_VOLUMEUP }, 35 { 0x0105, KEY_VOLUMEDOWN }, 36 { 0x0111, KEY_CHANNELUP }, 37 { 0x0109, KEY_CHANNELDOWN }, 38 { 0x0152, KEY_CAMERA }, 39 { 0x015a, KEY_TUNER }, /* Live */ 40 { 0x0119, KEY_OPEN }, 41 { 0x010b, KEY_1 }, 42 { 0x0117, KEY_2 }, 43 { 0x011b, KEY_3 }, 44 { 0x0107, KEY_4 }, 45 { 0x0150, KEY_5 }, 46 { 0x0154, KEY_6 }, 47 { 0x0148, KEY_7 }, 48 { 0x014c, KEY_8 }, 49 { 0x0158, KEY_9 }, 50 { 0x0113, KEY_ANGLE }, /* Aspect */ 51 { 0x0103, KEY_0 }, 52 { 0x011f, KEY_ZOOM }, 53 { 0x0143, KEY_REWIND }, 54 { 0x0147, KEY_PLAYPAUSE }, 55 { 0x014f, KEY_FASTFORWARD }, 56 { 0x0157, KEY_MUTE }, 57 { 0x010d, KEY_STOP }, 58 { 0x0101, KEY_RECORD }, 59 { 0x014e, KEY_POWER }, 60 }; 61 62 static struct rc_map_list dvico_mce_map = { 63 .map = { 64 .scan = rc_map_dvico_mce_table, 65 .size = ARRAY_SIZE(rc_map_dvico_mce_table), 66 .rc_proto = RC_PROTO_NEC, 67 .name = RC_MAP_DVICO_MCE, 68 } 69 }; 70 71 static int __init init_rc_map_dvico_mce(void) 72 { 73 return rc_map_register(&dvico_mce_map); 74 } 75 76 static void __exit exit_rc_map_dvico_mce(void) 77 { 78 rc_map_unregister(&dvico_mce_map); 79 } 80 81 module_init(init_rc_map_dvico_mce) 82 module_exit(exit_rc_map_dvico_mce) 83 84 MODULE_LICENSE("GPL"); 85 MODULE_AUTHOR("Mauro Carvalho Chehab"); 86