rc-su3000.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* rc-su3000.h - Keytable for Geniatech HDStar Remote Controller
  2. *
  3. * Copyright (c) 2013 by Evgeny Plehov <Evgeny Plehov@ukr.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. static struct rc_map_table su3000[] = {
  13. { 0x25, KEY_POWER }, /* right-bottom Red */
  14. { 0x0a, KEY_MUTE }, /* -/-- */
  15. { 0x01, KEY_1 },
  16. { 0x02, KEY_2 },
  17. { 0x03, KEY_3 },
  18. { 0x04, KEY_4 },
  19. { 0x05, KEY_5 },
  20. { 0x06, KEY_6 },
  21. { 0x07, KEY_7 },
  22. { 0x08, KEY_8 },
  23. { 0x09, KEY_9 },
  24. { 0x00, KEY_0 },
  25. { 0x20, KEY_UP }, /* CH+ */
  26. { 0x21, KEY_DOWN }, /* CH+ */
  27. { 0x12, KEY_VOLUMEUP }, /* Brightness Up */
  28. { 0x13, KEY_VOLUMEDOWN },/* Brightness Down */
  29. { 0x1f, KEY_RECORD },
  30. { 0x17, KEY_PLAY },
  31. { 0x16, KEY_PAUSE },
  32. { 0x0b, KEY_STOP },
  33. { 0x27, KEY_FASTFORWARD },/* >> */
  34. { 0x26, KEY_REWIND }, /* << */
  35. { 0x0d, KEY_OK }, /* Mute */
  36. { 0x11, KEY_LEFT }, /* VOL- */
  37. { 0x10, KEY_RIGHT }, /* VOL+ */
  38. { 0x29, KEY_BACK }, /* button under 9 */
  39. { 0x2c, KEY_MENU }, /* TTX */
  40. { 0x2b, KEY_EPG }, /* EPG */
  41. { 0x1e, KEY_RED }, /* OSD */
  42. { 0x0e, KEY_GREEN }, /* Window */
  43. { 0x2d, KEY_YELLOW }, /* button under << */
  44. { 0x0f, KEY_BLUE }, /* bottom yellow button */
  45. { 0x14, KEY_AUDIO }, /* Snapshot */
  46. { 0x38, KEY_TV }, /* TV/Radio */
  47. { 0x0c, KEY_ESC } /* upper Red button */
  48. };
  49. static struct rc_map_list su3000_map = {
  50. .map = {
  51. .scan = su3000,
  52. .size = ARRAY_SIZE(su3000),
  53. .rc_type = RC_TYPE_RC5,
  54. .name = RC_MAP_SU3000,
  55. }
  56. };
  57. static int __init init_rc_map_su3000(void)
  58. {
  59. return rc_map_register(&su3000_map);
  60. }
  61. static void __exit exit_rc_map_su3000(void)
  62. {
  63. rc_map_unregister(&su3000_map);
  64. }
  65. module_init(init_rc_map_su3000)
  66. module_exit(exit_rc_map_su3000)
  67. MODULE_LICENSE("GPL");
  68. MODULE_AUTHOR("Evgeny Plehov <Evgeny Plehov@ukr.net>");