rc-winfast-usbii-deluxe.c 2.1 KB

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