Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 // evga-indtube.h - Keytable for evga_indtube 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 /* EVGA inDtube
0012    Devin Heitmueller <devin.heitmueller@gmail.com>
0013  */
0014 
0015 static struct rc_map_table evga_indtube[] = {
0016     { 0x12, KEY_POWER},
0017     { 0x02, KEY_MODE},  /* TV */
0018     { 0x14, KEY_MUTE},
0019     { 0x1a, KEY_CHANNELUP},
0020     { 0x16, KEY_TV2},   /* PIP */
0021     { 0x1d, KEY_VOLUMEUP},
0022     { 0x05, KEY_CHANNELDOWN},
0023     { 0x0f, KEY_PLAYPAUSE},
0024     { 0x19, KEY_VOLUMEDOWN},
0025     { 0x1c, KEY_REWIND},
0026     { 0x0d, KEY_RECORD},
0027     { 0x18, KEY_FORWARD},
0028     { 0x1e, KEY_PREVIOUS},
0029     { 0x1b, KEY_STOP},
0030     { 0x1f, KEY_NEXT},
0031     { 0x13, KEY_CAMERA},
0032 };
0033 
0034 static struct rc_map_list evga_indtube_map = {
0035     .map = {
0036         .scan     = evga_indtube,
0037         .size     = ARRAY_SIZE(evga_indtube),
0038         .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
0039         .name     = RC_MAP_EVGA_INDTUBE,
0040     }
0041 };
0042 
0043 static int __init init_rc_map_evga_indtube(void)
0044 {
0045     return rc_map_register(&evga_indtube_map);
0046 }
0047 
0048 static void __exit exit_rc_map_evga_indtube(void)
0049 {
0050     rc_map_unregister(&evga_indtube_map);
0051 }
0052 
0053 module_init(init_rc_map_evga_indtube)
0054 module_exit(exit_rc_map_evga_indtube)
0055 
0056 MODULE_LICENSE("GPL");
0057 MODULE_AUTHOR("Mauro Carvalho Chehab");