rc-avermedia-m733a-rm-k6.c 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* avermedia-m733a-rm-k6.h - Keytable for avermedia_m733a_rm_k6 Remote Controller
  2. *
  3. * Copyright (c) 2010 by Herton Ronaldo Krzesinski <herton@mandriva.com.br>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. #include <media/rc-map.h>
  11. #include <linux/module.h>
  12. /*
  13. * Avermedia M733A with IR model RM-K6
  14. * This is the stock remote controller used with Positivo machines with M733A
  15. * Herton Ronaldo Krzesinski <herton@mandriva.com.br>
  16. */
  17. static struct rc_map_table avermedia_m733a_rm_k6[] = {
  18. { 0x0401, KEY_POWER2 },
  19. { 0x0406, KEY_MUTE },
  20. { 0x0408, KEY_MODE }, /* TV/FM */
  21. { 0x0409, KEY_1 },
  22. { 0x040a, KEY_2 },
  23. { 0x040b, KEY_3 },
  24. { 0x040c, KEY_4 },
  25. { 0x040d, KEY_5 },
  26. { 0x040e, KEY_6 },
  27. { 0x040f, KEY_7 },
  28. { 0x0410, KEY_8 },
  29. { 0x0411, KEY_9 },
  30. { 0x044c, KEY_DOT }, /* '.' */
  31. { 0x0412, KEY_0 },
  32. { 0x0407, KEY_REFRESH }, /* Refresh/Reload */
  33. { 0x0413, KEY_AUDIO },
  34. { 0x0440, KEY_SCREEN }, /* Full Screen toggle */
  35. { 0x0441, KEY_HOME },
  36. { 0x0442, KEY_BACK },
  37. { 0x0447, KEY_UP },
  38. { 0x0448, KEY_DOWN },
  39. { 0x0449, KEY_LEFT },
  40. { 0x044a, KEY_RIGHT },
  41. { 0x044b, KEY_OK },
  42. { 0x0404, KEY_VOLUMEUP },
  43. { 0x0405, KEY_VOLUMEDOWN },
  44. { 0x0402, KEY_CHANNELUP },
  45. { 0x0403, KEY_CHANNELDOWN },
  46. { 0x0443, KEY_RED },
  47. { 0x0444, KEY_GREEN },
  48. { 0x0445, KEY_YELLOW },
  49. { 0x0446, KEY_BLUE },
  50. { 0x0414, KEY_TEXT },
  51. { 0x0415, KEY_EPG },
  52. { 0x041a, KEY_TV2 }, /* PIP */
  53. { 0x041b, KEY_CAMERA }, /* Snapshot */
  54. { 0x0417, KEY_RECORD },
  55. { 0x0416, KEY_PLAYPAUSE },
  56. { 0x0418, KEY_STOP },
  57. { 0x0419, KEY_PAUSE },
  58. { 0x041f, KEY_PREVIOUS },
  59. { 0x041c, KEY_REWIND },
  60. { 0x041d, KEY_FORWARD },
  61. { 0x041e, KEY_NEXT },
  62. };
  63. static struct rc_map_list avermedia_m733a_rm_k6_map = {
  64. .map = {
  65. .scan = avermedia_m733a_rm_k6,
  66. .size = ARRAY_SIZE(avermedia_m733a_rm_k6),
  67. .rc_type = RC_TYPE_NEC,
  68. .name = RC_MAP_AVERMEDIA_M733A_RM_K6,
  69. }
  70. };
  71. static int __init init_rc_map_avermedia_m733a_rm_k6(void)
  72. {
  73. return rc_map_register(&avermedia_m733a_rm_k6_map);
  74. }
  75. static void __exit exit_rc_map_avermedia_m733a_rm_k6(void)
  76. {
  77. rc_map_unregister(&avermedia_m733a_rm_k6_map);
  78. }
  79. module_init(init_rc_map_avermedia_m733a_rm_k6)
  80. module_exit(exit_rc_map_avermedia_m733a_rm_k6)
  81. MODULE_LICENSE("GPL");
  82. MODULE_AUTHOR("Mauro Carvalho Chehab");