linux/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0+
   2// powercolor-real-angel.h - Keytable for powercolor_real_angel 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/*
  12 * Remote control for Powercolor Real Angel 330
  13 * Daniel Fraga <fragabr@gmail.com>
  14 */
  15
  16static struct rc_map_table powercolor_real_angel[] = {
  17        { 0x38, KEY_SWITCHVIDEOMODE },  /* switch inputs */
  18        { 0x0c, KEY_MEDIA },            /* Turn ON/OFF App */
  19        { 0x00, KEY_0 },
  20        { 0x01, KEY_1 },
  21        { 0x02, KEY_2 },
  22        { 0x03, KEY_3 },
  23        { 0x04, KEY_4 },
  24        { 0x05, KEY_5 },
  25        { 0x06, KEY_6 },
  26        { 0x07, KEY_7 },
  27        { 0x08, KEY_8 },
  28        { 0x09, KEY_9 },
  29        { 0x0a, KEY_DIGITS },           /* single, double, tripple digit */
  30        { 0x29, KEY_PREVIOUS },         /* previous channel */
  31        { 0x12, KEY_BRIGHTNESSUP },
  32        { 0x13, KEY_BRIGHTNESSDOWN },
  33        { 0x2b, KEY_MODE },             /* stereo/mono */
  34        { 0x2c, KEY_TEXT },             /* teletext */
  35        { 0x20, KEY_CHANNELUP },        /* channel up */
  36        { 0x21, KEY_CHANNELDOWN },      /* channel down */
  37        { 0x10, KEY_VOLUMEUP },         /* volume up */
  38        { 0x11, KEY_VOLUMEDOWN },       /* volume down */
  39        { 0x0d, KEY_MUTE },
  40        { 0x1f, KEY_RECORD },
  41        { 0x17, KEY_PLAY },
  42        { 0x16, KEY_PAUSE },
  43        { 0x0b, KEY_STOP },
  44        { 0x27, KEY_FASTFORWARD },
  45        { 0x26, KEY_REWIND },
  46        { 0x1e, KEY_SEARCH },           /* autoscan */
  47        { 0x0e, KEY_CAMERA },           /* snapshot */
  48        { 0x2d, KEY_SETUP },
  49        { 0x0f, KEY_SCREEN },           /* full screen */
  50        { 0x14, KEY_RADIO },            /* FM radio */
  51        { 0x25, KEY_POWER },            /* power */
  52};
  53
  54static struct rc_map_list powercolor_real_angel_map = {
  55        .map = {
  56                .scan     = powercolor_real_angel,
  57                .size     = ARRAY_SIZE(powercolor_real_angel),
  58                .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
  59                .name     = RC_MAP_POWERCOLOR_REAL_ANGEL,
  60        }
  61};
  62
  63static int __init init_rc_map_powercolor_real_angel(void)
  64{
  65        return rc_map_register(&powercolor_real_angel_map);
  66}
  67
  68static void __exit exit_rc_map_powercolor_real_angel(void)
  69{
  70        rc_map_unregister(&powercolor_real_angel_map);
  71}
  72
  73module_init(init_rc_map_powercolor_real_angel)
  74module_exit(exit_rc_map_powercolor_real_angel)
  75
  76MODULE_LICENSE("GPL");
  77MODULE_AUTHOR("Mauro Carvalho Chehab");
  78