rc-videomate-m1f.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* videomate-k100.h - Keytable for videomate_k100 Remote Controller
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #include <media/rc-map.h>
  13. #include <linux/module.h>
  14. static struct rc_map_table videomate_k100[] = {
  15. { 0x01, KEY_POWER },
  16. { 0x31, KEY_TUNER },
  17. { 0x33, KEY_VIDEO },
  18. { 0x2f, KEY_RADIO },
  19. { 0x30, KEY_CAMERA },
  20. { 0x2d, KEY_NEW }, /* TV record button */
  21. { 0x17, KEY_CYCLEWINDOWS },
  22. { 0x2c, KEY_ANGLE },
  23. { 0x2b, KEY_LANGUAGE },
  24. { 0x32, KEY_SEARCH }, /* '...' button */
  25. { 0x11, KEY_UP },
  26. { 0x13, KEY_LEFT },
  27. { 0x15, KEY_OK },
  28. { 0x14, KEY_RIGHT },
  29. { 0x12, KEY_DOWN },
  30. { 0x16, KEY_BACKSPACE },
  31. { 0x02, KEY_ZOOM }, /* WIN key */
  32. { 0x04, KEY_INFO },
  33. { 0x05, KEY_VOLUMEUP },
  34. { 0x03, KEY_MUTE },
  35. { 0x07, KEY_CHANNELUP },
  36. { 0x06, KEY_VOLUMEDOWN },
  37. { 0x08, KEY_CHANNELDOWN },
  38. { 0x0c, KEY_RECORD },
  39. { 0x0e, KEY_STOP },
  40. { 0x0a, KEY_BACK },
  41. { 0x0b, KEY_PLAY },
  42. { 0x09, KEY_FORWARD },
  43. { 0x10, KEY_PREVIOUS },
  44. { 0x0d, KEY_PAUSE },
  45. { 0x0f, KEY_NEXT },
  46. { 0x1e, KEY_1 },
  47. { 0x1f, KEY_2 },
  48. { 0x20, KEY_3 },
  49. { 0x21, KEY_4 },
  50. { 0x22, KEY_5 },
  51. { 0x23, KEY_6 },
  52. { 0x24, KEY_7 },
  53. { 0x25, KEY_8 },
  54. { 0x26, KEY_9 },
  55. { 0x2a, KEY_NUMERIC_STAR }, /* * key */
  56. { 0x1d, KEY_0 },
  57. { 0x29, KEY_SUBTITLE }, /* # key */
  58. { 0x27, KEY_CLEAR },
  59. { 0x34, KEY_SCREEN },
  60. { 0x28, KEY_ENTER },
  61. { 0x19, KEY_RED },
  62. { 0x1a, KEY_GREEN },
  63. { 0x1b, KEY_YELLOW },
  64. { 0x1c, KEY_BLUE },
  65. { 0x18, KEY_TEXT },
  66. };
  67. static struct rc_map_list videomate_k100_map = {
  68. .map = {
  69. .scan = videomate_k100,
  70. .size = ARRAY_SIZE(videomate_k100),
  71. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  72. .name = RC_MAP_VIDEOMATE_K100,
  73. }
  74. };
  75. static int __init init_rc_map_videomate_k100(void)
  76. {
  77. return rc_map_register(&videomate_k100_map);
  78. }
  79. static void __exit exit_rc_map_videomate_k100(void)
  80. {
  81. rc_map_unregister(&videomate_k100_map);
  82. }
  83. module_init(init_rc_map_videomate_k100)
  84. module_exit(exit_rc_map_videomate_k100)
  85. MODULE_LICENSE("GPL");
  86. MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>");