rc-proteus-2309.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* proteus-2309.h - Keytable for proteus_2309 Remote Controller
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. * Copyright (c) 2010 by Mauro Carvalho Chehab
  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. /* Michal Majchrowicz <mmajchrowicz@gmail.com> */
  15. static struct rc_map_table proteus_2309[] = {
  16. /* numeric */
  17. { 0x00, KEY_0 },
  18. { 0x01, KEY_1 },
  19. { 0x02, KEY_2 },
  20. { 0x03, KEY_3 },
  21. { 0x04, KEY_4 },
  22. { 0x05, KEY_5 },
  23. { 0x06, KEY_6 },
  24. { 0x07, KEY_7 },
  25. { 0x08, KEY_8 },
  26. { 0x09, KEY_9 },
  27. { 0x5c, KEY_POWER }, /* power */
  28. { 0x20, KEY_ZOOM }, /* full screen */
  29. { 0x0f, KEY_BACKSPACE }, /* recall */
  30. { 0x1b, KEY_ENTER }, /* mute */
  31. { 0x41, KEY_RECORD }, /* record */
  32. { 0x43, KEY_STOP }, /* stop */
  33. { 0x16, KEY_S },
  34. { 0x1a, KEY_POWER2 }, /* off */
  35. { 0x2e, KEY_RED },
  36. { 0x1f, KEY_CHANNELDOWN }, /* channel - */
  37. { 0x1c, KEY_CHANNELUP }, /* channel + */
  38. { 0x10, KEY_VOLUMEDOWN }, /* volume - */
  39. { 0x1e, KEY_VOLUMEUP }, /* volume + */
  40. { 0x14, KEY_F1 },
  41. };
  42. static struct rc_map_list proteus_2309_map = {
  43. .map = {
  44. .scan = proteus_2309,
  45. .size = ARRAY_SIZE(proteus_2309),
  46. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  47. .name = RC_MAP_PROTEUS_2309,
  48. }
  49. };
  50. static int __init init_rc_map_proteus_2309(void)
  51. {
  52. return rc_map_register(&proteus_2309_map);
  53. }
  54. static void __exit exit_rc_map_proteus_2309(void)
  55. {
  56. rc_map_unregister(&proteus_2309_map);
  57. }
  58. module_init(init_rc_map_proteus_2309)
  59. module_exit(exit_rc_map_proteus_2309)
  60. MODULE_LICENSE("GPL");
  61. MODULE_AUTHOR("Mauro Carvalho Chehab");