Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 // norwood.h - Keytable for norwood 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 /* Norwood Micro (non-Pro) TV Tuner
0012    By Peter Naulls <peter@chocky.org>
0013    Key comments are the functions given in the manual */
0014 
0015 static struct rc_map_table norwood[] = {
0016     /* Keys 0 to 9 */
0017     { 0x20, KEY_NUMERIC_0 },
0018     { 0x21, KEY_NUMERIC_1 },
0019     { 0x22, KEY_NUMERIC_2 },
0020     { 0x23, KEY_NUMERIC_3 },
0021     { 0x24, KEY_NUMERIC_4 },
0022     { 0x25, KEY_NUMERIC_5 },
0023     { 0x26, KEY_NUMERIC_6 },
0024     { 0x27, KEY_NUMERIC_7 },
0025     { 0x28, KEY_NUMERIC_8 },
0026     { 0x29, KEY_NUMERIC_9 },
0027 
0028     { 0x78, KEY_VIDEO },        /* Video Source        */
0029     { 0x2c, KEY_EXIT },     /* Open/Close software */
0030     { 0x2a, KEY_SELECT },       /* 2 Digit Select      */
0031     { 0x69, KEY_AGAIN },        /* Recall              */
0032 
0033     { 0x32, KEY_BRIGHTNESSUP }, /* Brightness increase */
0034     { 0x33, KEY_BRIGHTNESSDOWN },   /* Brightness decrease */
0035     { 0x6b, KEY_KPPLUS },       /* (not named >>>>>)   */
0036     { 0x6c, KEY_KPMINUS },      /* (not named <<<<<)   */
0037 
0038     { 0x2d, KEY_MUTE },     /* Mute                */
0039     { 0x30, KEY_VOLUMEUP },     /* Volume up           */
0040     { 0x31, KEY_VOLUMEDOWN },   /* Volume down         */
0041     { 0x60, KEY_CHANNELUP },    /* Channel up          */
0042     { 0x61, KEY_CHANNELDOWN },  /* Channel down        */
0043 
0044     { 0x3f, KEY_RECORD },       /* Record              */
0045     { 0x37, KEY_PLAY },     /* Play                */
0046     { 0x36, KEY_PAUSE },        /* Pause               */
0047     { 0x2b, KEY_STOP },     /* Stop                */
0048     { 0x67, KEY_FASTFORWARD },  /* Forward              */
0049     { 0x66, KEY_REWIND },       /* Rewind              */
0050     { 0x3e, KEY_SEARCH },       /* Auto Scan           */
0051     { 0x2e, KEY_CAMERA },       /* Capture Video       */
0052     { 0x6d, KEY_MENU },     /* Show/Hide Control   */
0053     { 0x2f, KEY_ZOOM },     /* Full Screen         */
0054     { 0x34, KEY_RADIO },        /* FM                  */
0055     { 0x65, KEY_POWER },        /* Computer power      */
0056 };
0057 
0058 static struct rc_map_list norwood_map = {
0059     .map = {
0060         .scan     = norwood,
0061         .size     = ARRAY_SIZE(norwood),
0062         .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
0063         .name     = RC_MAP_NORWOOD,
0064     }
0065 };
0066 
0067 static int __init init_rc_map_norwood(void)
0068 {
0069     return rc_map_register(&norwood_map);
0070 }
0071 
0072 static void __exit exit_rc_map_norwood(void)
0073 {
0074     rc_map_unregister(&norwood_map);
0075 }
0076 
0077 module_init(init_rc_map_norwood)
0078 module_exit(exit_rc_map_norwood)
0079 
0080 MODULE_LICENSE("GPL");
0081 MODULE_AUTHOR("Mauro Carvalho Chehab");