Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 // genius-tvgo-a11mce.h - Keytable for genius_tvgo_a11mce Remote Controller
0003 //
0004 // keymap imported from ir-keymaps.c
0005 //
0006 // Copyright (c) 2010 by Mauro Carvalho Chehab
0007 
0008 #include <media/rc-map.h>
0009 #include <linux/module.h>
0010 
0011 /*
0012  * Remote control for the Genius TVGO A11MCE
0013  * Adrian Pardini <pardo.bsso@gmail.com>
0014  */
0015 
0016 static struct rc_map_table genius_tvgo_a11mce[] = {
0017     /* Keys 0 to 9 */
0018     { 0x48, KEY_NUMERIC_0 },
0019     { 0x09, KEY_NUMERIC_1 },
0020     { 0x1d, KEY_NUMERIC_2 },
0021     { 0x1f, KEY_NUMERIC_3 },
0022     { 0x19, KEY_NUMERIC_4 },
0023     { 0x1b, KEY_NUMERIC_5 },
0024     { 0x11, KEY_NUMERIC_6 },
0025     { 0x17, KEY_NUMERIC_7 },
0026     { 0x12, KEY_NUMERIC_8 },
0027     { 0x16, KEY_NUMERIC_9 },
0028 
0029     { 0x54, KEY_RECORD },       /* recording */
0030     { 0x06, KEY_MUTE },     /* mute */
0031     { 0x10, KEY_POWER },
0032     { 0x40, KEY_LAST },     /* recall */
0033     { 0x4c, KEY_CHANNELUP },    /* channel / program + */
0034     { 0x00, KEY_CHANNELDOWN },  /* channel / program - */
0035     { 0x0d, KEY_VOLUMEUP },
0036     { 0x15, KEY_VOLUMEDOWN },
0037     { 0x4d, KEY_OK },       /* also labeled as Pause */
0038     { 0x1c, KEY_ZOOM },     /* full screen and Stop*/
0039     { 0x02, KEY_MODE },     /* AV Source or Rewind*/
0040     { 0x04, KEY_LIST },     /* -/-- */
0041     /* small arrows above numbers */
0042     { 0x1a, KEY_NEXT },     /* also Fast Forward */
0043     { 0x0e, KEY_PREVIOUS },     /* also Rewind */
0044     /* these are in a rather non standard layout and have
0045     an alternate name written */
0046     { 0x1e, KEY_UP },       /* Video Setting */
0047     { 0x0a, KEY_DOWN },     /* Video Default */
0048     { 0x05, KEY_CAMERA },       /* Snapshot */
0049     { 0x0c, KEY_RIGHT },        /* Hide Panel */
0050     /* Four buttons without label */
0051     { 0x49, KEY_RED },
0052     { 0x0b, KEY_GREEN },
0053     { 0x13, KEY_YELLOW },
0054     { 0x50, KEY_BLUE },
0055 };
0056 
0057 static struct rc_map_list genius_tvgo_a11mce_map = {
0058     .map = {
0059         .scan     = genius_tvgo_a11mce,
0060         .size     = ARRAY_SIZE(genius_tvgo_a11mce),
0061         .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
0062         .name     = RC_MAP_GENIUS_TVGO_A11MCE,
0063     }
0064 };
0065 
0066 static int __init init_rc_map_genius_tvgo_a11mce(void)
0067 {
0068     return rc_map_register(&genius_tvgo_a11mce_map);
0069 }
0070 
0071 static void __exit exit_rc_map_genius_tvgo_a11mce(void)
0072 {
0073     rc_map_unregister(&genius_tvgo_a11mce_map);
0074 }
0075 
0076 module_init(init_rc_map_genius_tvgo_a11mce)
0077 module_exit(exit_rc_map_genius_tvgo_a11mce)
0078 
0079 MODULE_LICENSE("GPL");
0080 MODULE_AUTHOR("Mauro Carvalho Chehab");