rc-technisat-ts35.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* rc-technisat-ts35.c - Keytable for TechniSat TS35 remote
  2. *
  3. * Copyright (c) 2013 by Jan Klötzke <jan@kloetzke.net>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of the
  8. * License, or (at your option) any later version.
  9. */
  10. #include <media/rc-map.h>
  11. #include <linux/module.h>
  12. static struct rc_map_table technisat_ts35[] = {
  13. {0x32, KEY_MUTE},
  14. {0x07, KEY_MEDIA},
  15. {0x1c, KEY_AB},
  16. {0x33, KEY_POWER},
  17. {0x3e, KEY_1},
  18. {0x3d, KEY_2},
  19. {0x3c, KEY_3},
  20. {0x3b, KEY_4},
  21. {0x3a, KEY_5},
  22. {0x39, KEY_6},
  23. {0x38, KEY_7},
  24. {0x37, KEY_8},
  25. {0x36, KEY_9},
  26. {0x3f, KEY_0},
  27. {0x35, KEY_DIGITS},
  28. {0x2c, KEY_TV},
  29. {0x20, KEY_INFO},
  30. {0x2d, KEY_MENU},
  31. {0x1f, KEY_UP},
  32. {0x1e, KEY_DOWN},
  33. {0x2e, KEY_LEFT},
  34. {0x2f, KEY_RIGHT},
  35. {0x28, KEY_OK},
  36. {0x10, KEY_EPG},
  37. {0x1d, KEY_BACK},
  38. {0x14, KEY_RED},
  39. {0x13, KEY_GREEN},
  40. {0x12, KEY_YELLOW},
  41. {0x11, KEY_BLUE},
  42. {0x09, KEY_SELECT},
  43. {0x03, KEY_TEXT},
  44. {0x16, KEY_STOP},
  45. {0x30, KEY_HELP},
  46. };
  47. static struct rc_map_list technisat_ts35_map = {
  48. .map = {
  49. .scan = technisat_ts35,
  50. .size = ARRAY_SIZE(technisat_ts35),
  51. .rc_type = RC_TYPE_UNKNOWN,
  52. .name = RC_MAP_TECHNISAT_TS35,
  53. }
  54. };
  55. static int __init init_rc_map(void)
  56. {
  57. return rc_map_register(&technisat_ts35_map);
  58. }
  59. static void __exit exit_rc_map(void)
  60. {
  61. rc_map_unregister(&technisat_ts35_map);
  62. }
  63. module_init(init_rc_map)
  64. module_exit(exit_rc_map)
  65. MODULE_LICENSE("GPL");