rc-encore-enltv-fm53.c 2.0 KB

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