rc-dvbsky.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* rc-dvbsky.c - Keytable for DVBSky Remote Controllers
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. *
  6. * Copyright (c) 2010-2012 by Nibble Max <nibble.max@gmail.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #include <media/rc-map.h>
  14. #include <linux/module.h>
  15. /*
  16. * This table contains the complete RC5 code, instead of just the data part
  17. */
  18. static struct rc_map_table rc5_dvbsky[] = {
  19. { 0x0000, KEY_0 },
  20. { 0x0001, KEY_1 },
  21. { 0x0002, KEY_2 },
  22. { 0x0003, KEY_3 },
  23. { 0x0004, KEY_4 },
  24. { 0x0005, KEY_5 },
  25. { 0x0006, KEY_6 },
  26. { 0x0007, KEY_7 },
  27. { 0x0008, KEY_8 },
  28. { 0x0009, KEY_9 },
  29. { 0x000a, KEY_MUTE },
  30. { 0x000d, KEY_OK },
  31. { 0x000b, KEY_STOP },
  32. { 0x000c, KEY_EXIT },
  33. { 0x000e, KEY_CAMERA }, /*Snap shot*/
  34. { 0x000f, KEY_SUBTITLE }, /*PIP*/
  35. { 0x0010, KEY_VOLUMEUP },
  36. { 0x0011, KEY_VOLUMEDOWN },
  37. { 0x0012, KEY_FAVORITES },
  38. { 0x0013, KEY_LIST }, /*Info*/
  39. { 0x0016, KEY_PAUSE },
  40. { 0x0017, KEY_PLAY },
  41. { 0x001f, KEY_RECORD },
  42. { 0x0020, KEY_CHANNELDOWN },
  43. { 0x0021, KEY_CHANNELUP },
  44. { 0x0025, KEY_POWER2 },
  45. { 0x0026, KEY_REWIND },
  46. { 0x0027, KEY_FASTFORWARD },
  47. { 0x0029, KEY_LAST },
  48. { 0x002b, KEY_MENU },
  49. { 0x002c, KEY_EPG },
  50. { 0x002d, KEY_ZOOM },
  51. };
  52. static struct rc_map_list rc5_dvbsky_map = {
  53. .map = {
  54. .scan = rc5_dvbsky,
  55. .size = ARRAY_SIZE(rc5_dvbsky),
  56. .rc_type = RC_TYPE_RC5,
  57. .name = RC_MAP_DVBSKY,
  58. }
  59. };
  60. static int __init init_rc_map_rc5_dvbsky(void)
  61. {
  62. return rc_map_register(&rc5_dvbsky_map);
  63. }
  64. static void __exit exit_rc_map_rc5_dvbsky(void)
  65. {
  66. rc_map_unregister(&rc5_dvbsky_map);
  67. }
  68. module_init(init_rc_map_rc5_dvbsky)
  69. module_exit(exit_rc_map_rc5_dvbsky)
  70. MODULE_LICENSE("GPL");
  71. MODULE_AUTHOR("Nibble Max <nibble.max@gmail.com>");