rc-delock-61959.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* rc-delock-61959.c - Keytable for Delock
  2. *
  3. * Copyright (c) 2013 by Jakob Haufe <sur5r@sur5r.net>
  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. * Keytable for remote provided with Delock 61959
  14. */
  15. static struct rc_map_table delock_61959[] = {
  16. { 0x866b16, KEY_POWER2 }, /* Power */
  17. { 0x866b0c, KEY_POWER }, /* Shut Down */
  18. { 0x866b00, KEY_1},
  19. { 0x866b01, KEY_2},
  20. { 0x866b02, KEY_3},
  21. { 0x866b03, KEY_4},
  22. { 0x866b04, KEY_5},
  23. { 0x866b05, KEY_6},
  24. { 0x866b06, KEY_7},
  25. { 0x866b07, KEY_8},
  26. { 0x866b08, KEY_9},
  27. { 0x866b14, KEY_0},
  28. { 0x866b0a, KEY_ZOOM}, /* Full Screen */
  29. { 0x866b10, KEY_CAMERA}, /* Photo */
  30. { 0x866b0e, KEY_CHANNEL}, /* circular arrow / Recall */
  31. { 0x866b13, KEY_ESC}, /* Back */
  32. { 0x866b20, KEY_UP},
  33. { 0x866b21, KEY_DOWN},
  34. { 0x866b42, KEY_LEFT},
  35. { 0x866b43, KEY_RIGHT},
  36. { 0x866b0b, KEY_OK},
  37. { 0x866b11, KEY_CHANNELUP},
  38. { 0x866b1b, KEY_CHANNELDOWN},
  39. { 0x866b12, KEY_VOLUMEUP},
  40. { 0x866b48, KEY_VOLUMEDOWN},
  41. { 0x866b44, KEY_MUTE},
  42. { 0x866b1a, KEY_RECORD},
  43. { 0x866b41, KEY_PLAY},
  44. { 0x866b40, KEY_STOP},
  45. { 0x866b19, KEY_PAUSE},
  46. { 0x866b1c, KEY_FASTFORWARD}, /* >> / FWD */
  47. { 0x866b1e, KEY_REWIND}, /* << / REW */
  48. };
  49. static struct rc_map_list delock_61959_map = {
  50. .map = {
  51. .scan = delock_61959,
  52. .size = ARRAY_SIZE(delock_61959),
  53. .rc_proto = RC_PROTO_NEC,
  54. .name = RC_MAP_DELOCK_61959,
  55. }
  56. };
  57. static int __init init_rc_map_delock_61959(void)
  58. {
  59. return rc_map_register(&delock_61959_map);
  60. }
  61. static void __exit exit_rc_map_delock_61959(void)
  62. {
  63. rc_map_unregister(&delock_61959_map);
  64. }
  65. module_init(init_rc_map_delock_61959)
  66. module_exit(exit_rc_map_delock_61959)
  67. MODULE_LICENSE("GPL");
  68. MODULE_AUTHOR("Jakob Haufe <sur5r@sur5r.net>");
  69. MODULE_DESCRIPTION("Delock 61959 remote keytable");