rc-dtt200u.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /* Keytable for Wideview WT-220U.
  3. *
  4. * Copyright (c) 2016 Jonathan McDowell <[email protected]>
  5. */
  6. #include <media/rc-map.h>
  7. #include <linux/module.h>
  8. /* key list for the tiny remote control (Yakumo, don't know about the others) */
  9. static struct rc_map_table dtt200u_table[] = {
  10. { 0x8001, KEY_MUTE },
  11. { 0x8002, KEY_CHANNELDOWN },
  12. { 0x8003, KEY_VOLUMEDOWN },
  13. { 0x8004, KEY_NUMERIC_1 },
  14. { 0x8005, KEY_NUMERIC_2 },
  15. { 0x8006, KEY_NUMERIC_3 },
  16. { 0x8007, KEY_NUMERIC_4 },
  17. { 0x8008, KEY_NUMERIC_5 },
  18. { 0x8009, KEY_NUMERIC_6 },
  19. { 0x800a, KEY_NUMERIC_7 },
  20. { 0x800c, KEY_ZOOM },
  21. { 0x800d, KEY_NUMERIC_0 },
  22. { 0x800e, KEY_SELECT },
  23. { 0x8012, KEY_POWER },
  24. { 0x801a, KEY_CHANNELUP },
  25. { 0x801b, KEY_NUMERIC_8 },
  26. { 0x801e, KEY_VOLUMEUP },
  27. { 0x801f, KEY_NUMERIC_9 },
  28. };
  29. static struct rc_map_list dtt200u_map = {
  30. .map = {
  31. .scan = dtt200u_table,
  32. .size = ARRAY_SIZE(dtt200u_table),
  33. .rc_proto = RC_PROTO_NEC,
  34. .name = RC_MAP_DTT200U,
  35. }
  36. };
  37. static int __init init_rc_map_dtt200u(void)
  38. {
  39. return rc_map_register(&dtt200u_map);
  40. }
  41. static void __exit exit_rc_map_dtt200u(void)
  42. {
  43. rc_map_unregister(&dtt200u_map);
  44. }
  45. module_init(init_rc_map_dtt200u)
  46. module_exit(exit_rc_map_dtt200u)
  47. MODULE_LICENSE("GPL");
  48. MODULE_AUTHOR("Jonathan McDowell <[email protected]>");