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

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_flydvb
  2. exit_rc_map_flydvb

   1 // SPDX-License-Identifier: GPL-2.0+
   2 // flydvb.h - Keytable for flydvb Remote Controller
   3 //
   4 // keymap imported from ir-keymaps.c
   5 //
   6 // Copyright (c) 2010 by Mauro Carvalho Chehab
   7 
   8 #include <media/rc-map.h>
   9 #include <linux/module.h>
  10 
  11 static struct rc_map_table flydvb[] = {
  12         { 0x01, KEY_ZOOM },             /* Full Screen */
  13         { 0x00, KEY_POWER },            /* Power */
  14 
  15         { 0x03, KEY_NUMERIC_1 },
  16         { 0x04, KEY_NUMERIC_2 },
  17         { 0x05, KEY_NUMERIC_3 },
  18         { 0x07, KEY_NUMERIC_4 },
  19         { 0x08, KEY_NUMERIC_5 },
  20         { 0x09, KEY_NUMERIC_6 },
  21         { 0x0b, KEY_NUMERIC_7 },
  22         { 0x0c, KEY_NUMERIC_8 },
  23         { 0x0d, KEY_NUMERIC_9 },
  24         { 0x06, KEY_AGAIN },            /* Recall */
  25         { 0x0f, KEY_NUMERIC_0 },
  26         { 0x10, KEY_MUTE },             /* Mute */
  27         { 0x02, KEY_RADIO },            /* TV/Radio */
  28         { 0x1b, KEY_LANGUAGE },         /* SAP (Second Audio Program) */
  29 
  30         { 0x14, KEY_VOLUMEUP },         /* VOL+ */
  31         { 0x17, KEY_VOLUMEDOWN },       /* VOL- */
  32         { 0x12, KEY_CHANNELUP },        /* CH+ */
  33         { 0x13, KEY_CHANNELDOWN },      /* CH- */
  34         { 0x1d, KEY_ENTER },            /* Enter */
  35 
  36         { 0x1a, KEY_TV2 },              /* PIP */
  37         { 0x18, KEY_VIDEO },            /* Source */
  38 
  39         { 0x1e, KEY_RECORD },           /* Record/Pause */
  40         { 0x15, KEY_ANGLE },            /* Swap (no label on key) */
  41         { 0x1c, KEY_PAUSE },            /* Timeshift/Pause */
  42         { 0x19, KEY_BACK },             /* Rewind << */
  43         { 0x0a, KEY_PLAYPAUSE },        /* Play/Pause */
  44         { 0x1f, KEY_FORWARD },          /* Forward >> */
  45         { 0x16, KEY_PREVIOUS },         /* Back |<< */
  46         { 0x11, KEY_STOP },             /* Stop */
  47         { 0x0e, KEY_NEXT },             /* End >>| */
  48 };
  49 
  50 static struct rc_map_list flydvb_map = {
  51         .map = {
  52                 .scan     = flydvb,
  53                 .size     = ARRAY_SIZE(flydvb),
  54                 .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
  55                 .name     = RC_MAP_FLYDVB,
  56         }
  57 };
  58 
  59 static int __init init_rc_map_flydvb(void)
  60 {
  61         return rc_map_register(&flydvb_map);
  62 }
  63 
  64 static void __exit exit_rc_map_flydvb(void)
  65 {
  66         rc_map_unregister(&flydvb_map);
  67 }
  68 
  69 module_init(init_rc_map_flydvb)
  70 module_exit(exit_rc_map_flydvb)
  71 
  72 MODULE_LICENSE("GPL");
  73 MODULE_AUTHOR("Mauro Carvalho Chehab");

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