rc-total-media-in-hand-02.c 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Total Media In Hand_02 remote controller keytable for Mygica X8507
  3. *
  4. * Copyright (C) 2012 Alfredo J. Delaiti <alfredodelaiti@netscape.net>
  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. #include <linux/module.h>
  22. static struct rc_map_table total_media_in_hand_02[] = {
  23. { 0x0000, KEY_0 },
  24. { 0x0001, KEY_1 },
  25. { 0x0002, KEY_2 },
  26. { 0x0003, KEY_3 },
  27. { 0x0004, KEY_4 },
  28. { 0x0005, KEY_5 },
  29. { 0x0006, KEY_6 },
  30. { 0x0007, KEY_7 },
  31. { 0x0008, KEY_8 },
  32. { 0x0009, KEY_9 },
  33. { 0x000a, KEY_MUTE },
  34. { 0x000b, KEY_STOP }, /* Stop */
  35. { 0x000c, KEY_POWER2 }, /* Turn on/off application */
  36. { 0x000d, KEY_OK }, /* OK */
  37. { 0x000e, KEY_CAMERA }, /* Snapshot */
  38. { 0x000f, KEY_ZOOM }, /* Full Screen/Restore */
  39. { 0x0010, KEY_RIGHT }, /* Right arrow */
  40. { 0x0011, KEY_LEFT }, /* Left arrow */
  41. { 0x0012, KEY_CHANNELUP },
  42. { 0x0013, KEY_CHANNELDOWN },
  43. { 0x0014, KEY_SHUFFLE },
  44. { 0x0016, KEY_PAUSE },
  45. { 0x0017, KEY_PLAY }, /* Play */
  46. { 0x001e, KEY_TIME }, /* Time Shift */
  47. { 0x001f, KEY_RECORD },
  48. { 0x0020, KEY_UP },
  49. { 0x0021, KEY_DOWN },
  50. { 0x0025, KEY_POWER }, /* Turn off computer */
  51. { 0x0026, KEY_REWIND }, /* FR << */
  52. { 0x0027, KEY_FASTFORWARD }, /* FF >> */
  53. { 0x0029, KEY_ESC },
  54. { 0x002b, KEY_VOLUMEUP },
  55. { 0x002c, KEY_VOLUMEDOWN },
  56. { 0x002d, KEY_CHANNEL }, /* CH Surfing */
  57. { 0x0038, KEY_VIDEO }, /* TV/AV/S-Video/YPbPr */
  58. };
  59. static struct rc_map_list total_media_in_hand_02_map = {
  60. .map = {
  61. .scan = total_media_in_hand_02,
  62. .size = ARRAY_SIZE(total_media_in_hand_02),
  63. .rc_type = RC_TYPE_RC5,
  64. .name = RC_MAP_TOTAL_MEDIA_IN_HAND_02,
  65. }
  66. };
  67. static int __init init_rc_map_total_media_in_hand_02(void)
  68. {
  69. return rc_map_register(&total_media_in_hand_02_map);
  70. }
  71. static void __exit exit_rc_map_total_media_in_hand_02(void)
  72. {
  73. rc_map_unregister(&total_media_in_hand_02_map);
  74. }
  75. module_init(init_rc_map_total_media_in_hand_02)
  76. module_exit(exit_rc_map_total_media_in_hand_02)
  77. MODULE_LICENSE("GPL");
  78. MODULE_AUTHOR(" Alfredo J. Delaiti <alfredodelaiti@netscape.net>");