rc-winfast-usbii-deluxe.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // winfast-usbii-deluxe.h - Keytable for winfast_usbii_deluxe Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /* Leadtek Winfast TV USB II Deluxe remote
  10. Magnus Alm <magnus.alm@gmail.com>
  11. */
  12. static struct rc_map_table winfast_usbii_deluxe[] = {
  13. { 0x62, KEY_0},
  14. { 0x75, KEY_1},
  15. { 0x76, KEY_2},
  16. { 0x77, KEY_3},
  17. { 0x79, KEY_4},
  18. { 0x7a, KEY_5},
  19. { 0x7b, KEY_6},
  20. { 0x7d, KEY_7},
  21. { 0x7e, KEY_8},
  22. { 0x7f, KEY_9},
  23. { 0x38, KEY_CAMERA}, /* SNAPSHOT */
  24. { 0x37, KEY_RECORD}, /* RECORD */
  25. { 0x35, KEY_TIME}, /* TIMESHIFT */
  26. { 0x74, KEY_VOLUMEUP}, /* VOLUMEUP */
  27. { 0x78, KEY_VOLUMEDOWN}, /* VOLUMEDOWN */
  28. { 0x64, KEY_MUTE}, /* MUTE */
  29. { 0x21, KEY_CHANNEL}, /* SURF */
  30. { 0x7c, KEY_CHANNELUP}, /* CHANNELUP */
  31. { 0x60, KEY_CHANNELDOWN}, /* CHANNELDOWN */
  32. { 0x61, KEY_LAST}, /* LAST CHANNEL (RECALL) */
  33. { 0x72, KEY_VIDEO}, /* INPUT MODES (TV/FM) */
  34. { 0x70, KEY_POWER2}, /* TV ON/OFF */
  35. { 0x39, KEY_CYCLEWINDOWS}, /* MINIMIZE (BOSS) */
  36. { 0x3a, KEY_NEW}, /* PIP */
  37. { 0x73, KEY_ZOOM}, /* FULLSECREEN */
  38. { 0x66, KEY_INFO}, /* OSD (DISPLAY) */
  39. { 0x31, KEY_DOT}, /* '.' */
  40. { 0x63, KEY_ENTER}, /* ENTER */
  41. };
  42. static struct rc_map_list winfast_usbii_deluxe_map = {
  43. .map = {
  44. .scan = winfast_usbii_deluxe,
  45. .size = ARRAY_SIZE(winfast_usbii_deluxe),
  46. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  47. .name = RC_MAP_WINFAST_USBII_DELUXE,
  48. }
  49. };
  50. static int __init init_rc_map_winfast_usbii_deluxe(void)
  51. {
  52. return rc_map_register(&winfast_usbii_deluxe_map);
  53. }
  54. static void __exit exit_rc_map_winfast_usbii_deluxe(void)
  55. {
  56. rc_map_unregister(&winfast_usbii_deluxe_map);
  57. }
  58. module_init(init_rc_map_winfast_usbii_deluxe)
  59. module_exit(exit_rc_map_winfast_usbii_deluxe)
  60. MODULE_LICENSE("GPL");
  61. MODULE_AUTHOR("Mauro Carvalho Chehab");