linux/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0+
   2// encore-enltv-fm53.h - Keytable for encore_enltv_fm53 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/* Encore ENLTV-FM v5.3
  12   Mauro Carvalho Chehab <mchehab@kernel.org>
  13 */
  14
  15static struct rc_map_table encore_enltv_fm53[] = {
  16        { 0x10, KEY_POWER2},
  17        { 0x06, KEY_MUTE},
  18
  19        { 0x09, KEY_1},
  20        { 0x1d, KEY_2},
  21        { 0x1f, KEY_3},
  22        { 0x19, KEY_4},
  23        { 0x1b, KEY_5},
  24        { 0x11, KEY_6},
  25        { 0x17, KEY_7},
  26        { 0x12, KEY_8},
  27        { 0x16, KEY_9},
  28        { 0x48, KEY_0},
  29
  30        { 0x04, KEY_LIST},              /* -/-- */
  31        { 0x40, KEY_LAST},              /* recall */
  32
  33        { 0x02, KEY_MODE},              /* TV/AV */
  34        { 0x05, KEY_CAMERA},            /* SNAPSHOT */
  35
  36        { 0x4c, KEY_CHANNELUP},         /* UP */
  37        { 0x00, KEY_CHANNELDOWN},       /* DOWN */
  38        { 0x0d, KEY_VOLUMEUP},          /* RIGHT */
  39        { 0x15, KEY_VOLUMEDOWN},        /* LEFT */
  40        { 0x49, KEY_ENTER},             /* OK */
  41
  42        { 0x54, KEY_RECORD},
  43        { 0x4d, KEY_PLAY},              /* pause */
  44
  45        { 0x1e, KEY_MENU},              /* video setting */
  46        { 0x0e, KEY_RIGHT},             /* <- */
  47        { 0x1a, KEY_LEFT},              /* -> */
  48
  49        { 0x0a, KEY_CLEAR},             /* video default */
  50        { 0x0c, KEY_ZOOM},              /* hide pannel */
  51        { 0x47, KEY_SLEEP},             /* shutdown */
  52};
  53
  54static struct rc_map_list encore_enltv_fm53_map = {
  55        .map = {
  56                .scan     = encore_enltv_fm53,
  57                .size     = ARRAY_SIZE(encore_enltv_fm53),
  58                .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
  59                .name     = RC_MAP_ENCORE_ENLTV_FM53,
  60        }
  61};
  62
  63static int __init init_rc_map_encore_enltv_fm53(void)
  64{
  65        return rc_map_register(&encore_enltv_fm53_map);
  66}
  67
  68static void __exit exit_rc_map_encore_enltv_fm53(void)
  69{
  70        rc_map_unregister(&encore_enltv_fm53_map);
  71}
  72
  73module_init(init_rc_map_encore_enltv_fm53)
  74module_exit(exit_rc_map_encore_enltv_fm53)
  75
  76MODULE_LICENSE("GPL");
  77MODULE_AUTHOR("Mauro Carvalho Chehab");
  78