Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * TrekStor remote controller keytable
0004  *
0005  * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
0006  */
0007 
0008 #include <media/rc-map.h>
0009 #include <linux/module.h>
0010 
0011 /* TrekStor DVB-T USB Stick remote controller. */
0012 /* Imported from af9015.h.
0013    Initial keytable was from Marc Schneider <macke@macke.org> */
0014 static struct rc_map_table trekstor[] = {
0015     { 0x0084, KEY_NUMERIC_0 },
0016     { 0x0085, KEY_MUTE },            /* Mute */
0017     { 0x0086, KEY_HOMEPAGE },        /* Home */
0018     { 0x0087, KEY_UP },              /* Up */
0019     { 0x0088, KEY_OK },              /* OK */
0020     { 0x0089, KEY_RIGHT },           /* Right */
0021     { 0x008a, KEY_FASTFORWARD },     /* Fast forward */
0022     { 0x008b, KEY_VOLUMEUP },        /* Volume + */
0023     { 0x008c, KEY_DOWN },            /* Down */
0024     { 0x008d, KEY_PLAY },            /* Play/Pause */
0025     { 0x008e, KEY_STOP },            /* Stop */
0026     { 0x008f, KEY_EPG },             /* Info/EPG */
0027     { 0x0090, KEY_NUMERIC_7 },
0028     { 0x0091, KEY_NUMERIC_4 },
0029     { 0x0092, KEY_NUMERIC_1 },
0030     { 0x0093, KEY_CHANNELDOWN },     /* Channel - */
0031     { 0x0094, KEY_NUMERIC_8 },
0032     { 0x0095, KEY_NUMERIC_5 },
0033     { 0x0096, KEY_NUMERIC_2 },
0034     { 0x0097, KEY_CHANNELUP },       /* Channel + */
0035     { 0x0098, KEY_NUMERIC_9 },
0036     { 0x0099, KEY_NUMERIC_6 },
0037     { 0x009a, KEY_NUMERIC_3 },
0038     { 0x009b, KEY_VOLUMEDOWN },      /* Volume - */
0039     { 0x009c, KEY_TV },              /* TV */
0040     { 0x009d, KEY_RECORD },          /* Record */
0041     { 0x009e, KEY_REWIND },          /* Rewind */
0042     { 0x009f, KEY_LEFT },            /* Left */
0043 };
0044 
0045 static struct rc_map_list trekstor_map = {
0046     .map = {
0047         .scan     = trekstor,
0048         .size     = ARRAY_SIZE(trekstor),
0049         .rc_proto = RC_PROTO_NEC,
0050         .name     = RC_MAP_TREKSTOR,
0051     }
0052 };
0053 
0054 static int __init init_rc_map_trekstor(void)
0055 {
0056     return rc_map_register(&trekstor_map);
0057 }
0058 
0059 static void __exit exit_rc_map_trekstor(void)
0060 {
0061     rc_map_unregister(&trekstor_map);
0062 }
0063 
0064 module_init(init_rc_map_trekstor)
0065 module_exit(exit_rc_map_trekstor)
0066 
0067 MODULE_LICENSE("GPL");
0068 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");