cx25840.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. cx25840.h - definition for cx25840/1/2/3 inputs
  3. Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl)
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef _CX25840_H_
  17. #define _CX25840_H_
  18. enum cx25840_video_input {
  19. /* Composite video inputs In1-In8 */
  20. CX25840_COMPOSITE1 = 1,
  21. CX25840_COMPOSITE2,
  22. CX25840_COMPOSITE3,
  23. CX25840_COMPOSITE4,
  24. CX25840_COMPOSITE5,
  25. CX25840_COMPOSITE6,
  26. CX25840_COMPOSITE7,
  27. CX25840_COMPOSITE8,
  28. /* S-Video inputs consist of one luma input (In1-In4) ORed with one
  29. chroma input (In5-In8) */
  30. CX25840_SVIDEO_LUMA1 = 0x10,
  31. CX25840_SVIDEO_LUMA2 = 0x20,
  32. CX25840_SVIDEO_LUMA3 = 0x30,
  33. CX25840_SVIDEO_LUMA4 = 0x40,
  34. CX25840_SVIDEO_CHROMA4 = 0x400,
  35. CX25840_SVIDEO_CHROMA5 = 0x500,
  36. CX25840_SVIDEO_CHROMA6 = 0x600,
  37. CX25840_SVIDEO_CHROMA7 = 0x700,
  38. CX25840_SVIDEO_CHROMA8 = 0x800,
  39. /* S-Video aliases for common luma/chroma combinations */
  40. CX25840_SVIDEO1 = 0x510,
  41. CX25840_SVIDEO2 = 0x620,
  42. CX25840_SVIDEO3 = 0x730,
  43. CX25840_SVIDEO4 = 0x840,
  44. /* Allow frames to specify specific input configurations */
  45. CX25840_VIN1_CH1 = 0x80000000,
  46. CX25840_VIN2_CH1 = 0x80000001,
  47. CX25840_VIN3_CH1 = 0x80000002,
  48. CX25840_VIN4_CH1 = 0x80000003,
  49. CX25840_VIN5_CH1 = 0x80000004,
  50. CX25840_VIN6_CH1 = 0x80000005,
  51. CX25840_VIN7_CH1 = 0x80000006,
  52. CX25840_VIN8_CH1 = 0x80000007,
  53. CX25840_VIN4_CH2 = 0x80000000,
  54. CX25840_VIN5_CH2 = 0x80000010,
  55. CX25840_VIN6_CH2 = 0x80000020,
  56. CX25840_NONE_CH2 = 0x80000030,
  57. CX25840_VIN7_CH3 = 0x80000000,
  58. CX25840_VIN8_CH3 = 0x80000040,
  59. CX25840_NONE0_CH3 = 0x80000080,
  60. CX25840_NONE1_CH3 = 0x800000c0,
  61. CX25840_SVIDEO_ON = 0x80000100,
  62. };
  63. enum cx25840_audio_input {
  64. /* Audio inputs: serial or In4-In8 */
  65. CX25840_AUDIO_SERIAL,
  66. CX25840_AUDIO4 = 4,
  67. CX25840_AUDIO5,
  68. CX25840_AUDIO6,
  69. CX25840_AUDIO7,
  70. CX25840_AUDIO8,
  71. };
  72. #endif