rc-trekstor.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * TrekStor remote controller keytable
  4. *
  5. * Copyright (C) 2010 Antti Palosaari <[email protected]>
  6. */
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /* TrekStor DVB-T USB Stick remote controller. */
  10. /* Imported from af9015.h.
  11. Initial keytable was from Marc Schneider <[email protected]> */
  12. static struct rc_map_table trekstor[] = {
  13. { 0x0084, KEY_NUMERIC_0 },
  14. { 0x0085, KEY_MUTE }, /* Mute */
  15. { 0x0086, KEY_HOMEPAGE }, /* Home */
  16. { 0x0087, KEY_UP }, /* Up */
  17. { 0x0088, KEY_OK }, /* OK */
  18. { 0x0089, KEY_RIGHT }, /* Right */
  19. { 0x008a, KEY_FASTFORWARD }, /* Fast forward */
  20. { 0x008b, KEY_VOLUMEUP }, /* Volume + */
  21. { 0x008c, KEY_DOWN }, /* Down */
  22. { 0x008d, KEY_PLAY }, /* Play/Pause */
  23. { 0x008e, KEY_STOP }, /* Stop */
  24. { 0x008f, KEY_EPG }, /* Info/EPG */
  25. { 0x0090, KEY_NUMERIC_7 },
  26. { 0x0091, KEY_NUMERIC_4 },
  27. { 0x0092, KEY_NUMERIC_1 },
  28. { 0x0093, KEY_CHANNELDOWN }, /* Channel - */
  29. { 0x0094, KEY_NUMERIC_8 },
  30. { 0x0095, KEY_NUMERIC_5 },
  31. { 0x0096, KEY_NUMERIC_2 },
  32. { 0x0097, KEY_CHANNELUP }, /* Channel + */
  33. { 0x0098, KEY_NUMERIC_9 },
  34. { 0x0099, KEY_NUMERIC_6 },
  35. { 0x009a, KEY_NUMERIC_3 },
  36. { 0x009b, KEY_VOLUMEDOWN }, /* Volume - */
  37. { 0x009c, KEY_TV }, /* TV */
  38. { 0x009d, KEY_RECORD }, /* Record */
  39. { 0x009e, KEY_REWIND }, /* Rewind */
  40. { 0x009f, KEY_LEFT }, /* Left */
  41. };
  42. static struct rc_map_list trekstor_map = {
  43. .map = {
  44. .scan = trekstor,
  45. .size = ARRAY_SIZE(trekstor),
  46. .rc_proto = RC_PROTO_NEC,
  47. .name = RC_MAP_TREKSTOR,
  48. }
  49. };
  50. static int __init init_rc_map_trekstor(void)
  51. {
  52. return rc_map_register(&trekstor_map);
  53. }
  54. static void __exit exit_rc_map_trekstor(void)
  55. {
  56. rc_map_unregister(&trekstor_map);
  57. }
  58. module_init(init_rc_map_trekstor)
  59. module_exit(exit_rc_map_trekstor)
  60. MODULE_LICENSE("GPL");
  61. MODULE_AUTHOR("Antti Palosaari <[email protected]>");