cx25840.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. };
  45. enum cx25840_audio_input {
  46. /* Audio inputs: serial or In4-In8 */
  47. CX25840_AUDIO_SERIAL,
  48. CX25840_AUDIO4 = 4,
  49. CX25840_AUDIO5,
  50. CX25840_AUDIO6,
  51. CX25840_AUDIO7,
  52. CX25840_AUDIO8,
  53. };
  54. #endif