Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 // budget-ci-old.h - Keytable for budget_ci_old 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  * From reading the following remotes:
0013  * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
0014  * Hauppauge (from NOVA-CI-s box product)
0015  * This is a "middle of the road" approach, differences are noted
0016  */
0017 
0018 static struct rc_map_table budget_ci_old[] = {
0019     { 0x00, KEY_NUMERIC_0 },
0020     { 0x01, KEY_NUMERIC_1 },
0021     { 0x02, KEY_NUMERIC_2 },
0022     { 0x03, KEY_NUMERIC_3 },
0023     { 0x04, KEY_NUMERIC_4 },
0024     { 0x05, KEY_NUMERIC_5 },
0025     { 0x06, KEY_NUMERIC_6 },
0026     { 0x07, KEY_NUMERIC_7 },
0027     { 0x08, KEY_NUMERIC_8 },
0028     { 0x09, KEY_NUMERIC_9 },
0029     { 0x0a, KEY_ENTER },
0030     { 0x0b, KEY_RED },
0031     { 0x0c, KEY_POWER },        /* RADIO on Hauppauge */
0032     { 0x0d, KEY_MUTE },
0033     { 0x0f, KEY_A },        /* TV on Hauppauge */
0034     { 0x10, KEY_VOLUMEUP },
0035     { 0x11, KEY_VOLUMEDOWN },
0036     { 0x14, KEY_B },
0037     { 0x1c, KEY_UP },
0038     { 0x1d, KEY_DOWN },
0039     { 0x1e, KEY_OPTION },       /* RESERVED on Hauppauge */
0040     { 0x1f, KEY_BREAK },
0041     { 0x20, KEY_CHANNELUP },
0042     { 0x21, KEY_CHANNELDOWN },
0043     { 0x22, KEY_PREVIOUS },     /* Prev Ch on Zenith, SOURCE on Hauppauge */
0044     { 0x24, KEY_RESTART },
0045     { 0x25, KEY_OK },
0046     { 0x26, KEY_CYCLEWINDOWS }, /* MINIMIZE on Hauppauge */
0047     { 0x28, KEY_ENTER },        /* VCR mode on Zenith */
0048     { 0x29, KEY_PAUSE },
0049     { 0x2b, KEY_RIGHT },
0050     { 0x2c, KEY_LEFT },
0051     { 0x2e, KEY_MENU },     /* FULL SCREEN on Hauppauge */
0052     { 0x30, KEY_SLOW },
0053     { 0x31, KEY_PREVIOUS },     /* VCR mode on Zenith */
0054     { 0x32, KEY_REWIND },
0055     { 0x34, KEY_FASTFORWARD },
0056     { 0x35, KEY_PLAY },
0057     { 0x36, KEY_STOP },
0058     { 0x37, KEY_RECORD },
0059     { 0x38, KEY_TUNER },        /* TV/VCR on Zenith */
0060     { 0x3a, KEY_C },
0061     { 0x3c, KEY_EXIT },
0062     { 0x3d, KEY_POWER2 },
0063     { 0x3e, KEY_TUNER },
0064 };
0065 
0066 static struct rc_map_list budget_ci_old_map = {
0067     .map = {
0068         .scan     = budget_ci_old,
0069         .size     = ARRAY_SIZE(budget_ci_old),
0070         .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
0071         .name     = RC_MAP_BUDGET_CI_OLD,
0072     }
0073 };
0074 
0075 static int __init init_rc_map_budget_ci_old(void)
0076 {
0077     return rc_map_register(&budget_ci_old_map);
0078 }
0079 
0080 static void __exit exit_rc_map_budget_ci_old(void)
0081 {
0082     rc_map_unregister(&budget_ci_old_map);
0083 }
0084 
0085 module_init(init_rc_map_budget_ci_old)
0086 module_exit(exit_rc_map_budget_ci_old)
0087 
0088 MODULE_LICENSE("GPL");
0089 MODULE_AUTHOR("Mauro Carvalho Chehab");