rc-pinnacle-pctv-hd.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd 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. /* Pinnacle PCTV HD 800i mini remote */
  14. static struct ir_scancode pinnacle_pctv_hd[] = {
  15. { 0x0f, KEY_1 },
  16. { 0x15, KEY_2 },
  17. { 0x10, KEY_3 },
  18. { 0x18, KEY_4 },
  19. { 0x1b, KEY_5 },
  20. { 0x1e, KEY_6 },
  21. { 0x11, KEY_7 },
  22. { 0x21, KEY_8 },
  23. { 0x12, KEY_9 },
  24. { 0x27, KEY_0 },
  25. { 0x24, KEY_ZOOM },
  26. { 0x2a, KEY_SUBTITLE },
  27. { 0x00, KEY_MUTE },
  28. { 0x01, KEY_ENTER }, /* Pinnacle Logo */
  29. { 0x39, KEY_POWER },
  30. { 0x03, KEY_VOLUMEUP },
  31. { 0x09, KEY_VOLUMEDOWN },
  32. { 0x06, KEY_CHANNELUP },
  33. { 0x0c, KEY_CHANNELDOWN },
  34. { 0x2d, KEY_REWIND },
  35. { 0x30, KEY_PLAYPAUSE },
  36. { 0x33, KEY_FASTFORWARD },
  37. { 0x3c, KEY_STOP },
  38. { 0x36, KEY_RECORD },
  39. { 0x3f, KEY_EPG }, /* Labeled "?" */
  40. };
  41. static struct rc_keymap pinnacle_pctv_hd_map = {
  42. .map = {
  43. .scan = pinnacle_pctv_hd,
  44. .size = ARRAY_SIZE(pinnacle_pctv_hd),
  45. .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
  46. .name = RC_MAP_PINNACLE_PCTV_HD,
  47. }
  48. };
  49. static int __init init_rc_map_pinnacle_pctv_hd(void)
  50. {
  51. return ir_register_map(&pinnacle_pctv_hd_map);
  52. }
  53. static void __exit exit_rc_map_pinnacle_pctv_hd(void)
  54. {
  55. ir_unregister_map(&pinnacle_pctv_hd_map);
  56. }
  57. module_init(init_rc_map_pinnacle_pctv_hd)
  58. module_exit(exit_rc_map_pinnacle_pctv_hd)
  59. MODULE_LICENSE("GPL");
  60. MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");