rc-digittrade.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Digittrade DVB-T USB Stick 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. #include <linux/module.h>
  22. /* Digittrade DVB-T USB Stick remote controller. */
  23. /* Imported from af9015.h.
  24. Initial keytable was from Alain Kalker <miki@dds.nl> */
  25. /* Digittrade DVB-T USB Stick */
  26. static struct rc_map_table digittrade[] = {
  27. { 0x0000, KEY_9 },
  28. { 0x0001, KEY_EPG }, /* EPG */
  29. { 0x0002, KEY_VOLUMEDOWN }, /* Vol Dn */
  30. { 0x0003, KEY_TEXT }, /* TELETEXT */
  31. { 0x0004, KEY_8 },
  32. { 0x0005, KEY_MUTE }, /* MUTE */
  33. { 0x0006, KEY_POWER2 }, /* POWER */
  34. { 0x0009, KEY_ZOOM }, /* FULLSCREEN */
  35. { 0x000a, KEY_RECORD }, /* RECORD */
  36. { 0x000d, KEY_SUBTITLE }, /* SUBTITLE */
  37. { 0x000e, KEY_STOP }, /* STOP */
  38. { 0x0010, KEY_OK }, /* RETURN */
  39. { 0x0011, KEY_2 },
  40. { 0x0012, KEY_4 },
  41. { 0x0015, KEY_3 },
  42. { 0x0016, KEY_5 },
  43. { 0x0017, KEY_CHANNELDOWN }, /* Ch Dn */
  44. { 0x0019, KEY_CHANNELUP }, /* CH Up */
  45. { 0x001a, KEY_PAUSE }, /* PAUSE */
  46. { 0x001b, KEY_1 },
  47. { 0x001d, KEY_AUDIO }, /* DUAL SOUND */
  48. { 0x001e, KEY_PLAY }, /* PLAY */
  49. { 0x001f, KEY_CAMERA }, /* SNAPSHOT */
  50. { 0x0040, KEY_VOLUMEUP }, /* Vol Up */
  51. { 0x0048, KEY_7 },
  52. { 0x004c, KEY_6 },
  53. { 0x004d, KEY_PLAYPAUSE }, /* TIMESHIFT */
  54. { 0x0054, KEY_0 },
  55. };
  56. static struct rc_map_list digittrade_map = {
  57. .map = {
  58. .scan = digittrade,
  59. .size = ARRAY_SIZE(digittrade),
  60. .rc_type = RC_TYPE_NEC,
  61. .name = RC_MAP_DIGITTRADE,
  62. }
  63. };
  64. static int __init init_rc_map_digittrade(void)
  65. {
  66. return rc_map_register(&digittrade_map);
  67. }
  68. static void __exit exit_rc_map_digittrade(void)
  69. {
  70. rc_map_unregister(&digittrade_map);
  71. }
  72. module_init(init_rc_map_digittrade)
  73. module_exit(exit_rc_map_digittrade)
  74. MODULE_LICENSE("GPL");
  75. MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");