rc-snapstream-firefly.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * SnapStream Firefly X10 RF remote keytable
  3. *
  4. * Copyright (C) 2011 Anssi Hannula <anssi.hannula@?ki.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 <linux/module.h>
  21. #include <media/rc-map.h>
  22. static struct rc_map_table snapstream_firefly[] = {
  23. { 0xf12c, KEY_ZOOM }, /* Maximize */
  24. { 0xc702, KEY_CLOSE },
  25. { 0xd20d, KEY_1 },
  26. { 0xd30e, KEY_2 },
  27. { 0xd40f, KEY_3 },
  28. { 0xd510, KEY_4 },
  29. { 0xd611, KEY_5 },
  30. { 0xd712, KEY_6 },
  31. { 0xd813, KEY_7 },
  32. { 0xd914, KEY_8 },
  33. { 0xda15, KEY_9 },
  34. { 0xdc17, KEY_0 },
  35. { 0xdb16, KEY_BACK },
  36. { 0xdd18, KEY_KPENTER }, /* ent */
  37. { 0xce09, KEY_VOLUMEUP },
  38. { 0xcd08, KEY_VOLUMEDOWN },
  39. { 0xcf0a, KEY_MUTE },
  40. { 0xd00b, KEY_CHANNELUP },
  41. { 0xd10c, KEY_CHANNELDOWN },
  42. { 0xc500, KEY_VENDOR }, /* firefly */
  43. { 0xf32e, KEY_INFO },
  44. { 0xf42f, KEY_OPTION },
  45. { 0xe21d, KEY_LEFT },
  46. { 0xe41f, KEY_RIGHT },
  47. { 0xe722, KEY_DOWN },
  48. { 0xdf1a, KEY_UP },
  49. { 0xe31e, KEY_OK },
  50. { 0xe11c, KEY_MENU },
  51. { 0xe520, KEY_EXIT },
  52. { 0xec27, KEY_RECORD },
  53. { 0xea25, KEY_PLAY },
  54. { 0xed28, KEY_STOP },
  55. { 0xe924, KEY_REWIND },
  56. { 0xeb26, KEY_FORWARD },
  57. { 0xee29, KEY_PAUSE },
  58. { 0xf02b, KEY_PREVIOUS },
  59. { 0xef2a, KEY_NEXT },
  60. { 0xcb06, KEY_AUDIO }, /* Music */
  61. { 0xca05, KEY_IMAGES }, /* Photos */
  62. { 0xc904, KEY_DVD },
  63. { 0xc803, KEY_TV },
  64. { 0xcc07, KEY_VIDEO },
  65. { 0xc601, KEY_HELP },
  66. { 0xf22d, KEY_MODE }, /* Mouse */
  67. { 0xde19, KEY_A },
  68. { 0xe01b, KEY_B },
  69. { 0xe621, KEY_C },
  70. { 0xe823, KEY_D },
  71. };
  72. static struct rc_map_list snapstream_firefly_map = {
  73. .map = {
  74. .scan = snapstream_firefly,
  75. .size = ARRAY_SIZE(snapstream_firefly),
  76. .rc_type = RC_TYPE_OTHER,
  77. .name = RC_MAP_SNAPSTREAM_FIREFLY,
  78. }
  79. };
  80. static int __init init_rc_map_snapstream_firefly(void)
  81. {
  82. return rc_map_register(&snapstream_firefly_map);
  83. }
  84. static void __exit exit_rc_map_snapstream_firefly(void)
  85. {
  86. rc_map_unregister(&snapstream_firefly_map);
  87. }
  88. module_init(init_rc_map_snapstream_firefly)
  89. module_exit(exit_rc_map_snapstream_firefly)
  90. MODULE_LICENSE("GPL");
  91. MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>");