rc-azurewave-ad-tu700.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * TwinHan AzureWave AD-TU700(704J) 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. static struct rc_map_table azurewave_ad_tu700[] = {
  23. { 0x0000, KEY_TAB }, /* Tab */
  24. { 0x0001, KEY_2 },
  25. { 0x0002, KEY_CHANNELDOWN },
  26. { 0x0003, KEY_1 },
  27. { 0x0004, KEY_MENU }, /* Record List */
  28. { 0x0005, KEY_CHANNELUP },
  29. { 0x0006, KEY_3 },
  30. { 0x0007, KEY_SLEEP }, /* Hibernate */
  31. { 0x0008, KEY_VIDEO }, /* A/V */
  32. { 0x0009, KEY_4 },
  33. { 0x000a, KEY_VOLUMEDOWN },
  34. { 0x000c, KEY_CANCEL }, /* Cancel */
  35. { 0x000d, KEY_7 },
  36. { 0x000e, KEY_AGAIN }, /* Recall */
  37. { 0x000f, KEY_TEXT }, /* Teletext */
  38. { 0x0010, KEY_MUTE },
  39. { 0x0011, KEY_RECORD },
  40. { 0x0012, KEY_FASTFORWARD }, /* FF >> */
  41. { 0x0013, KEY_BACK }, /* Back */
  42. { 0x0014, KEY_PLAY },
  43. { 0x0015, KEY_0 },
  44. { 0x0016, KEY_POWER2 }, /* [red power button] */
  45. { 0x0017, KEY_FAVORITES }, /* Favorite List */
  46. { 0x0018, KEY_RED },
  47. { 0x0019, KEY_8 },
  48. { 0x001a, KEY_STOP },
  49. { 0x001b, KEY_9 },
  50. { 0x001c, KEY_EPG }, /* Info/EPG */
  51. { 0x001d, KEY_5 },
  52. { 0x001e, KEY_VOLUMEUP },
  53. { 0x001f, KEY_6 },
  54. { 0x0040, KEY_REWIND }, /* FR << */
  55. { 0x0041, KEY_PREVIOUS }, /* Replay */
  56. { 0x0042, KEY_NEXT }, /* Skip */
  57. { 0x0043, KEY_SUBTITLE }, /* Subtitle / CC */
  58. { 0x0045, KEY_KPPLUS }, /* Zoom+ */
  59. { 0x0046, KEY_KPMINUS }, /* Zoom- */
  60. { 0x0047, KEY_NEW }, /* PIP */
  61. { 0x0048, KEY_INFO }, /* Preview */
  62. { 0x0049, KEY_MODE }, /* L/R */
  63. { 0x004a, KEY_CLEAR }, /* Clear */
  64. { 0x004b, KEY_UP }, /* up arrow */
  65. { 0x004c, KEY_PAUSE },
  66. { 0x004d, KEY_ZOOM }, /* Full Screen */
  67. { 0x004e, KEY_LEFT }, /* left arrow */
  68. { 0x004f, KEY_OK }, /* Enter / ok */
  69. { 0x0050, KEY_LANGUAGE }, /* SAP */
  70. { 0x0051, KEY_DOWN }, /* down arrow */
  71. { 0x0052, KEY_RIGHT }, /* right arrow */
  72. { 0x0053, KEY_GREEN },
  73. { 0x0054, KEY_CAMERA }, /* Capture */
  74. { 0x005e, KEY_YELLOW },
  75. { 0x005f, KEY_BLUE },
  76. };
  77. static struct rc_map_list azurewave_ad_tu700_map = {
  78. .map = {
  79. .scan = azurewave_ad_tu700,
  80. .size = ARRAY_SIZE(azurewave_ad_tu700),
  81. .rc_type = RC_TYPE_NEC,
  82. .name = RC_MAP_AZUREWAVE_AD_TU700,
  83. }
  84. };
  85. static int __init init_rc_map_azurewave_ad_tu700(void)
  86. {
  87. return rc_map_register(&azurewave_ad_tu700_map);
  88. }
  89. static void __exit exit_rc_map_azurewave_ad_tu700(void)
  90. {
  91. rc_map_unregister(&azurewave_ad_tu700_map);
  92. }
  93. module_init(init_rc_map_azurewave_ad_tu700)
  94. module_exit(exit_rc_map_azurewave_ad_tu700)
  95. MODULE_LICENSE("GPL");
  96. MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");