root/drivers/media/rc/keymaps/rc-trekstor.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_trekstor
  2. exit_rc_map_trekstor

   1 // SPDX-License-Identifier: GPL-2.0-or-later
   2 /*
   3  * TrekStor remote controller keytable
   4  *
   5  * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
   6  */
   7 
   8 #include <media/rc-map.h>
   9 #include <linux/module.h>
  10 
  11 /* TrekStor DVB-T USB Stick remote controller. */
  12 /* Imported from af9015.h.
  13    Initial keytable was from Marc Schneider <macke@macke.org> */
  14 static struct rc_map_table trekstor[] = {
  15         { 0x0084, KEY_NUMERIC_0 },
  16         { 0x0085, KEY_MUTE },            /* Mute */
  17         { 0x0086, KEY_HOMEPAGE },        /* Home */
  18         { 0x0087, KEY_UP },              /* Up */
  19         { 0x0088, KEY_OK },              /* OK */
  20         { 0x0089, KEY_RIGHT },           /* Right */
  21         { 0x008a, KEY_FASTFORWARD },     /* Fast forward */
  22         { 0x008b, KEY_VOLUMEUP },        /* Volume + */
  23         { 0x008c, KEY_DOWN },            /* Down */
  24         { 0x008d, KEY_PLAY },            /* Play/Pause */
  25         { 0x008e, KEY_STOP },            /* Stop */
  26         { 0x008f, KEY_EPG },             /* Info/EPG */
  27         { 0x0090, KEY_NUMERIC_7 },
  28         { 0x0091, KEY_NUMERIC_4 },
  29         { 0x0092, KEY_NUMERIC_1 },
  30         { 0x0093, KEY_CHANNELDOWN },     /* Channel - */
  31         { 0x0094, KEY_NUMERIC_8 },
  32         { 0x0095, KEY_NUMERIC_5 },
  33         { 0x0096, KEY_NUMERIC_2 },
  34         { 0x0097, KEY_CHANNELUP },       /* Channel + */
  35         { 0x0098, KEY_NUMERIC_9 },
  36         { 0x0099, KEY_NUMERIC_6 },
  37         { 0x009a, KEY_NUMERIC_3 },
  38         { 0x009b, KEY_VOLUMEDOWN },      /* Volume - */
  39         { 0x009c, KEY_TV },              /* TV */
  40         { 0x009d, KEY_RECORD },          /* Record */
  41         { 0x009e, KEY_REWIND },          /* Rewind */
  42         { 0x009f, KEY_LEFT },            /* Left */
  43 };
  44 
  45 static struct rc_map_list trekstor_map = {
  46         .map = {
  47                 .scan     = trekstor,
  48                 .size     = ARRAY_SIZE(trekstor),
  49                 .rc_proto = RC_PROTO_NEC,
  50                 .name     = RC_MAP_TREKSTOR,
  51         }
  52 };
  53 
  54 static int __init init_rc_map_trekstor(void)
  55 {
  56         return rc_map_register(&trekstor_map);
  57 }
  58 
  59 static void __exit exit_rc_map_trekstor(void)
  60 {
  61         rc_map_unregister(&trekstor_map);
  62 }
  63 
  64 module_init(init_rc_map_trekstor)
  65 module_exit(exit_rc_map_trekstor)
  66 
  67 MODULE_LICENSE("GPL");
  68 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");

/* [<][>][^][v][top][bottom][index][help] */