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

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_su3000
  2. exit_rc_map_su3000

   1 // SPDX-License-Identifier: GPL-2.0-or-later
   2 /* rc-su3000.h - Keytable for Geniatech HDStar Remote Controller
   3  *
   4  * Copyright (c) 2013 by Evgeny Plehov <Evgeny Plehov@ukr.net>
   5  */
   6 
   7 #include <media/rc-map.h>
   8 #include <linux/module.h>
   9 
  10 static struct rc_map_table su3000[] = {
  11         { 0x25, KEY_POWER },    /* right-bottom Red */
  12         { 0x0a, KEY_MUTE },     /* -/-- */
  13         { 0x01, KEY_NUMERIC_1 },
  14         { 0x02, KEY_NUMERIC_2 },
  15         { 0x03, KEY_NUMERIC_3 },
  16         { 0x04, KEY_NUMERIC_4 },
  17         { 0x05, KEY_NUMERIC_5 },
  18         { 0x06, KEY_NUMERIC_6 },
  19         { 0x07, KEY_NUMERIC_7 },
  20         { 0x08, KEY_NUMERIC_8 },
  21         { 0x09, KEY_NUMERIC_9 },
  22         { 0x00, KEY_NUMERIC_0 },
  23         { 0x20, KEY_UP },       /* CH+ */
  24         { 0x21, KEY_DOWN },     /* CH+ */
  25         { 0x12, KEY_VOLUMEUP }, /* Brightness Up */
  26         { 0x13, KEY_VOLUMEDOWN },/* Brightness Down */
  27         { 0x1f, KEY_RECORD },
  28         { 0x17, KEY_PLAY },
  29         { 0x16, KEY_PAUSE },
  30         { 0x0b, KEY_STOP },
  31         { 0x27, KEY_FASTFORWARD },/* >> */
  32         { 0x26, KEY_REWIND },   /* << */
  33         { 0x0d, KEY_OK },       /* Mute */
  34         { 0x11, KEY_LEFT },     /* VOL- */
  35         { 0x10, KEY_RIGHT },    /* VOL+ */
  36         { 0x29, KEY_BACK },     /* button under 9 */
  37         { 0x2c, KEY_MENU },     /* TTX */
  38         { 0x2b, KEY_EPG },      /* EPG */
  39         { 0x1e, KEY_RED },      /* OSD */
  40         { 0x0e, KEY_GREEN },    /* Window */
  41         { 0x2d, KEY_YELLOW },   /* button under << */
  42         { 0x0f, KEY_BLUE },     /* bottom yellow button */
  43         { 0x14, KEY_AUDIO },    /* Snapshot */
  44         { 0x38, KEY_TV },       /* TV/Radio */
  45         { 0x0c, KEY_ESC }       /* upper Red button */
  46 };
  47 
  48 static struct rc_map_list su3000_map = {
  49         .map = {
  50                 .scan     = su3000,
  51                 .size     = ARRAY_SIZE(su3000),
  52                 .rc_proto = RC_PROTO_RC5,
  53                 .name     = RC_MAP_SU3000,
  54         }
  55 };
  56 
  57 static int __init init_rc_map_su3000(void)
  58 {
  59         return rc_map_register(&su3000_map);
  60 }
  61 
  62 static void __exit exit_rc_map_su3000(void)
  63 {
  64         rc_map_unregister(&su3000_map);
  65 }
  66 
  67 module_init(init_rc_map_su3000)
  68 module_exit(exit_rc_map_su3000)
  69 
  70 MODULE_LICENSE("GPL");
  71 MODULE_AUTHOR("Evgeny Plehov <Evgeny Plehov@ukr.net>");

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