saa7115.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. saa7115.h - definition for saa7113/4/5 inputs and frequency flags
  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 _SAA7115_H_
  17. #define _SAA7115_H_
  18. /* SAA7113/4/5 HW inputs */
  19. #define SAA7115_COMPOSITE0 0
  20. #define SAA7115_COMPOSITE1 1
  21. #define SAA7115_COMPOSITE2 2
  22. #define SAA7115_COMPOSITE3 3
  23. #define SAA7115_COMPOSITE4 4 /* not available for the saa7113 */
  24. #define SAA7115_COMPOSITE5 5 /* not available for the saa7113 */
  25. #define SAA7115_SVIDEO0 6
  26. #define SAA7115_SVIDEO1 7
  27. #define SAA7115_SVIDEO2 8
  28. #define SAA7115_SVIDEO3 9
  29. /* SAA7115 v4l2_crystal_freq frequency values */
  30. #define SAA7115_FREQ_32_11_MHZ 32110000 /* 32.11 MHz crystal, SAA7114/5 only */
  31. #define SAA7115_FREQ_24_576_MHZ 24576000 /* 24.576 MHz crystal */
  32. /* SAA7115 v4l2_crystal_freq audio clock control flags */
  33. #define SAA7115_FREQ_FL_UCGC (1 << 0) /* SA 3A[7], UCGC, SAA7115 only */
  34. #define SAA7115_FREQ_FL_CGCDIV (1 << 1) /* SA 3A[6], CGCDIV, SAA7115 only */
  35. #define SAA7115_FREQ_FL_APLL (1 << 2) /* SA 3A[3], APLL, SAA7114/5 only */
  36. #define SAA7115_IPORT_ON 1
  37. #define SAA7115_IPORT_OFF 0
  38. #endif