rc-lme2510.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* LME2510 remote control
  2. *
  3. *
  4. * Copyright (C) 2010 Malcolm Priestley (tvboxspy@gmail.com)
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #include <media/rc-map.h>
  12. static struct rc_map_table lme2510_rc[] = {
  13. { 0xba45, KEY_0 },
  14. { 0xa05f, KEY_1 },
  15. { 0xaf50, KEY_2 },
  16. { 0xa25d, KEY_3 },
  17. { 0xbe41, KEY_4 },
  18. { 0xf50a, KEY_5 },
  19. { 0xbd42, KEY_6 },
  20. { 0xb847, KEY_7 },
  21. { 0xb649, KEY_8 },
  22. { 0xfa05, KEY_9 },
  23. { 0xbc43, KEY_POWER },
  24. { 0xb946, KEY_SUBTITLE },
  25. { 0xf906, KEY_PAUSE },
  26. { 0xfc03, KEY_MEDIA_REPEAT},
  27. { 0xfd02, KEY_PAUSE },
  28. { 0xa15e, KEY_VOLUMEUP },
  29. { 0xa35c, KEY_VOLUMEDOWN },
  30. { 0xf609, KEY_CHANNELUP },
  31. { 0xe51a, KEY_CHANNELDOWN },
  32. { 0xe11e, KEY_PLAY },
  33. { 0xe41b, KEY_ZOOM },
  34. { 0xa659, KEY_MUTE },
  35. { 0xa55a, KEY_TV },
  36. { 0xe718, KEY_RECORD },
  37. { 0xf807, KEY_EPG },
  38. { 0xfe01, KEY_STOP },
  39. };
  40. static struct rc_map_list lme2510_map = {
  41. .map = {
  42. .scan = lme2510_rc,
  43. .size = ARRAY_SIZE(lme2510_rc),
  44. .rc_type = RC_TYPE_UNKNOWN,
  45. .name = RC_MAP_LME2510,
  46. }
  47. };
  48. static int __init init_rc_lme2510_map(void)
  49. {
  50. return rc_map_register(&lme2510_map);
  51. }
  52. static void __exit exit_rc_lme2510_map(void)
  53. {
  54. rc_map_unregister(&lme2510_map);
  55. }
  56. module_init(init_rc_lme2510_map)
  57. module_exit(exit_rc_lme2510_map)
  58. MODULE_LICENSE("GPL");
  59. MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com");