rc-encore-enltv2.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // encore-enltv2.h - Keytable for encore_enltv2 Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /* Encore ENLTV2-FM - silver plastic - "Wand Media" written at the botton
  10. Mauro Carvalho Chehab <mchehab@kernel.org> */
  11. static struct rc_map_table encore_enltv2[] = {
  12. { 0x4c, KEY_POWER2 },
  13. { 0x4a, KEY_TUNER },
  14. { 0x40, KEY_1 },
  15. { 0x60, KEY_2 },
  16. { 0x50, KEY_3 },
  17. { 0x70, KEY_4 },
  18. { 0x48, KEY_5 },
  19. { 0x68, KEY_6 },
  20. { 0x58, KEY_7 },
  21. { 0x78, KEY_8 },
  22. { 0x44, KEY_9 },
  23. { 0x54, KEY_0 },
  24. { 0x64, KEY_LAST }, /* +100 */
  25. { 0x4e, KEY_AGAIN }, /* Recall */
  26. { 0x6c, KEY_VIDEO }, /* Video Source */
  27. { 0x5e, KEY_MENU },
  28. { 0x56, KEY_SCREEN },
  29. { 0x7a, KEY_SETUP },
  30. { 0x46, KEY_MUTE },
  31. { 0x5c, KEY_MODE }, /* Stereo */
  32. { 0x74, KEY_INFO },
  33. { 0x7c, KEY_CLEAR },
  34. { 0x55, KEY_UP },
  35. { 0x49, KEY_DOWN },
  36. { 0x7e, KEY_LEFT },
  37. { 0x59, KEY_RIGHT },
  38. { 0x6a, KEY_ENTER },
  39. { 0x42, KEY_VOLUMEUP },
  40. { 0x62, KEY_VOLUMEDOWN },
  41. { 0x52, KEY_CHANNELUP },
  42. { 0x72, KEY_CHANNELDOWN },
  43. { 0x41, KEY_RECORD },
  44. { 0x51, KEY_CAMERA }, /* Snapshot */
  45. { 0x75, KEY_TIME }, /* Timeshift */
  46. { 0x71, KEY_TV2 }, /* PIP */
  47. { 0x45, KEY_REWIND },
  48. { 0x6f, KEY_PAUSE },
  49. { 0x7d, KEY_FORWARD },
  50. { 0x79, KEY_STOP },
  51. };
  52. static struct rc_map_list encore_enltv2_map = {
  53. .map = {
  54. .scan = encore_enltv2,
  55. .size = ARRAY_SIZE(encore_enltv2),
  56. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  57. .name = RC_MAP_ENCORE_ENLTV2,
  58. }
  59. };
  60. static int __init init_rc_map_encore_enltv2(void)
  61. {
  62. return rc_map_register(&encore_enltv2_map);
  63. }
  64. static void __exit exit_rc_map_encore_enltv2(void)
  65. {
  66. rc_map_unregister(&encore_enltv2_map);
  67. }
  68. module_init(init_rc_map_encore_enltv2)
  69. module_exit(exit_rc_map_encore_enltv2)
  70. MODULE_LICENSE("GPL");
  71. MODULE_AUTHOR("Mauro Carvalho Chehab");