rc-dtt200u.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Keytable for Wideview WT-220U.
  2. *
  3. * Copyright (c) 2016 Jonathan McDowell <noodles@earth.li>
  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. /* key list for the tiny remote control (Yakumo, don't know about the others) */
  13. static struct rc_map_table dtt200u_table[] = {
  14. { 0x8001, KEY_MUTE },
  15. { 0x8002, KEY_CHANNELDOWN },
  16. { 0x8003, KEY_VOLUMEDOWN },
  17. { 0x8004, KEY_1 },
  18. { 0x8005, KEY_2 },
  19. { 0x8006, KEY_3 },
  20. { 0x8007, KEY_4 },
  21. { 0x8008, KEY_5 },
  22. { 0x8009, KEY_6 },
  23. { 0x800a, KEY_7 },
  24. { 0x800c, KEY_ZOOM },
  25. { 0x800d, KEY_0 },
  26. { 0x800e, KEY_SELECT },
  27. { 0x8012, KEY_POWER },
  28. { 0x801a, KEY_CHANNELUP },
  29. { 0x801b, KEY_8 },
  30. { 0x801e, KEY_VOLUMEUP },
  31. { 0x801f, KEY_9 },
  32. };
  33. static struct rc_map_list dtt200u_map = {
  34. .map = {
  35. .scan = dtt200u_table,
  36. .size = ARRAY_SIZE(dtt200u_table),
  37. .rc_proto = RC_PROTO_NEC,
  38. .name = RC_MAP_DTT200U,
  39. }
  40. };
  41. static int __init init_rc_map_dtt200u(void)
  42. {
  43. return rc_map_register(&dtt200u_map);
  44. }
  45. static void __exit exit_rc_map_dtt200u(void)
  46. {
  47. rc_map_unregister(&dtt200u_map);
  48. }
  49. module_init(init_rc_map_dtt200u)
  50. module_exit(exit_rc_map_dtt200u)
  51. MODULE_LICENSE("GPL");
  52. MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>");