rc-pinnacle-pctv-hd.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd 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. /* Pinnacle PCTV HD 800i mini remote */
  10. static struct rc_map_table pinnacle_pctv_hd[] = {
  11. /* Key codes for the tiny Pinnacle remote*/
  12. { 0x0700, KEY_MUTE },
  13. { 0x0701, KEY_MENU }, /* Pinnacle logo */
  14. { 0x0739, KEY_POWER },
  15. { 0x0703, KEY_VOLUMEUP },
  16. { 0x0705, KEY_OK },
  17. { 0x0709, KEY_VOLUMEDOWN },
  18. { 0x0706, KEY_CHANNELUP },
  19. { 0x070c, KEY_CHANNELDOWN },
  20. { 0x070f, KEY_1 },
  21. { 0x0715, KEY_2 },
  22. { 0x0710, KEY_3 },
  23. { 0x0718, KEY_4 },
  24. { 0x071b, KEY_5 },
  25. { 0x071e, KEY_6 },
  26. { 0x0711, KEY_7 },
  27. { 0x0721, KEY_8 },
  28. { 0x0712, KEY_9 },
  29. { 0x0727, KEY_0 },
  30. { 0x0724, KEY_ZOOM }, /* 'Square' key */
  31. { 0x072a, KEY_SUBTITLE }, /* 'T' key */
  32. { 0x072d, KEY_REWIND },
  33. { 0x0730, KEY_PLAYPAUSE },
  34. { 0x0733, KEY_FASTFORWARD },
  35. { 0x0736, KEY_RECORD },
  36. { 0x073c, KEY_STOP },
  37. { 0x073f, KEY_HELP }, /* '?' key */
  38. };
  39. static struct rc_map_list pinnacle_pctv_hd_map = {
  40. .map = {
  41. .scan = pinnacle_pctv_hd,
  42. .size = ARRAY_SIZE(pinnacle_pctv_hd),
  43. .rc_proto = RC_PROTO_RC5,
  44. .name = RC_MAP_PINNACLE_PCTV_HD,
  45. }
  46. };
  47. static int __init init_rc_map_pinnacle_pctv_hd(void)
  48. {
  49. return rc_map_register(&pinnacle_pctv_hd_map);
  50. }
  51. static void __exit exit_rc_map_pinnacle_pctv_hd(void)
  52. {
  53. rc_map_unregister(&pinnacle_pctv_hd_map);
  54. }
  55. module_init(init_rc_map_pinnacle_pctv_hd)
  56. module_exit(exit_rc_map_pinnacle_pctv_hd)
  57. MODULE_LICENSE("GPL");
  58. MODULE_AUTHOR("Mauro Carvalho Chehab");