rc-encore-enltv2.c 2.1 KB

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