rc-anysee.c 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Anysee remote controller keytable
  3. *
  4. * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. */
  20. #include <media/rc-map.h>
  21. static struct rc_map_table anysee[] = {
  22. { 0x0800, KEY_0 },
  23. { 0x0801, KEY_1 },
  24. { 0x0802, KEY_2 },
  25. { 0x0803, KEY_3 },
  26. { 0x0804, KEY_4 },
  27. { 0x0805, KEY_5 },
  28. { 0x0806, KEY_6 },
  29. { 0x0807, KEY_7 },
  30. { 0x0808, KEY_8 },
  31. { 0x0809, KEY_9 },
  32. { 0x080a, KEY_POWER2 }, /* [red power button] */
  33. { 0x080b, KEY_VIDEO }, /* [*] MODE */
  34. { 0x080c, KEY_CHANNEL }, /* [symbol counterclockwise arrow] */
  35. { 0x080d, KEY_NEXT }, /* [>>|] */
  36. { 0x080e, KEY_MENU }, /* MENU */
  37. { 0x080f, KEY_EPG }, /* [EPG] */
  38. { 0x0810, KEY_CLEAR }, /* EXIT */
  39. { 0x0811, KEY_CHANNELUP },
  40. { 0x0812, KEY_VOLUMEDOWN },
  41. { 0x0813, KEY_VOLUMEUP },
  42. { 0x0814, KEY_CHANNELDOWN },
  43. { 0x0815, KEY_OK },
  44. { 0x0816, KEY_RADIO }, /* [symbol TV/radio] */
  45. { 0x0817, KEY_INFO }, /* [i] */
  46. { 0x0818, KEY_PREVIOUS }, /* [|<<] */
  47. { 0x0819, KEY_FAVORITES }, /* FAV. */
  48. { 0x081a, KEY_SUBTITLE }, /* Subtitle */
  49. { 0x081b, KEY_CAMERA }, /* [symbol camera] */
  50. { 0x081c, KEY_YELLOW },
  51. { 0x081d, KEY_RED },
  52. { 0x081e, KEY_LANGUAGE }, /* [symbol Second Audio Program] */
  53. { 0x081f, KEY_GREEN },
  54. { 0x0820, KEY_SLEEP }, /* Sleep */
  55. { 0x0821, KEY_SCREEN }, /* 16:9 / 4:3 */
  56. { 0x0822, KEY_ZOOM }, /* SIZE */
  57. { 0x0824, KEY_FN }, /* [F1] */
  58. { 0x0825, KEY_FN }, /* [F2] */
  59. { 0x0842, KEY_MUTE }, /* symbol mute */
  60. { 0x0844, KEY_BLUE },
  61. { 0x0847, KEY_TEXT }, /* TEXT */
  62. { 0x0848, KEY_STOP },
  63. { 0x0849, KEY_RECORD },
  64. { 0x0850, KEY_PLAY },
  65. { 0x0851, KEY_PAUSE },
  66. };
  67. static struct rc_map_list anysee_map = {
  68. .map = {
  69. .scan = anysee,
  70. .size = ARRAY_SIZE(anysee),
  71. .rc_type = RC_TYPE_NEC,
  72. .name = RC_MAP_ANYSEE,
  73. }
  74. };
  75. static int __init init_rc_map_anysee(void)
  76. {
  77. return rc_map_register(&anysee_map);
  78. }
  79. static void __exit exit_rc_map_anysee(void)
  80. {
  81. rc_map_unregister(&anysee_map);
  82. }
  83. module_init(init_rc_map_anysee)
  84. module_exit(exit_rc_map_anysee)
  85. MODULE_LICENSE("GPL");
  86. MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");