Blame view

include/media/saa7115.h 2 KB
1f8f5fa9b   Hans Verkuil   V4L/DVB (3607): I...
1
  /*
6bd6dff63   Hans Verkuil   V4L/DVB (8940): s...
2
      saa7115.h - definition for saa7111/3/4/5 inputs and frequency flags
1f8f5fa9b   Hans Verkuil   V4L/DVB (3607): I...
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  
      Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl)
  
      This program is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation; either version 2 of the License, or
      (at your option) any later version.
  
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
  
      You should have received a copy of the GNU General Public License
      along with this program; if not, write to the Free Software
      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  
  #ifndef _SAA7115_H_
  #define _SAA7115_H_
6bd6dff63   Hans Verkuil   V4L/DVB (8940): s...
23
  /* SAA7111/3/4/5 HW inputs */
1f8f5fa9b   Hans Verkuil   V4L/DVB (3607): I...
24
25
26
27
  #define SAA7115_COMPOSITE0 0
  #define SAA7115_COMPOSITE1 1
  #define SAA7115_COMPOSITE2 2
  #define SAA7115_COMPOSITE3 3
6bd6dff63   Hans Verkuil   V4L/DVB (8940): s...
28
29
  #define SAA7115_COMPOSITE4 4 /* not available for the saa7111/3 */
  #define SAA7115_COMPOSITE5 5 /* not available for the saa7111/3 */
1f8f5fa9b   Hans Verkuil   V4L/DVB (3607): I...
30
31
32
33
  #define SAA7115_SVIDEO0    6
  #define SAA7115_SVIDEO1    7
  #define SAA7115_SVIDEO2    8
  #define SAA7115_SVIDEO3    9
b7f8292c9   Hans Verkuil   V4L/DVB (3711): A...
34
35
36
37
38
39
40
41
  /* SAA7115 v4l2_crystal_freq frequency values */
  #define SAA7115_FREQ_32_11_MHZ  32110000   /* 32.11 MHz crystal, SAA7114/5 only */
  #define SAA7115_FREQ_24_576_MHZ 24576000   /* 24.576 MHz crystal */
  
  /* SAA7115 v4l2_crystal_freq audio clock control flags */
  #define SAA7115_FREQ_FL_UCGC   (1 << 0)	   /* SA 3A[7], UCGC, SAA7115 only */
  #define SAA7115_FREQ_FL_CGCDIV (1 << 1)	   /* SA 3A[6], CGCDIV, SAA7115 only */
  #define SAA7115_FREQ_FL_APLL   (1 << 2)	   /* SA 3A[3], APLL, SAA7114/5 only */
6bd6dff63   Hans Verkuil   V4L/DVB (8940): s...
42
43
44
45
46
47
48
49
50
  #define SAA7115_IPORT_ON    	1
  #define SAA7115_IPORT_OFF   	0
  
  /* SAA7111 specific output flags */
  #define SAA7111_VBI_BYPASS 	2
  #define SAA7111_FMT_YUV422      0x00
  #define SAA7111_FMT_RGB 	0x40
  #define SAA7111_FMT_CCIR 	0x80
  #define SAA7111_FMT_YUV411 	0xc0
4cbca185e   Marco Schluessler   V4L/DVB (5113): A...
51

1f8f5fa9b   Hans Verkuil   V4L/DVB (3607): I...
52
  #endif