Go to the documentation of this file.
16 #define SAA7191_ADDR 0x8a
19 #define SAA7191_REG_IDEL 0x00
20 #define SAA7191_REG_HSYB 0x01
21 #define SAA7191_REG_HSYS 0x02
22 #define SAA7191_REG_HCLB 0x03
23 #define SAA7191_REG_HCLS 0x04
24 #define SAA7191_REG_HPHI 0x05
25 #define SAA7191_REG_LUMA 0x06
26 #define SAA7191_REG_HUEC 0x07
27 #define SAA7191_REG_CKTQ 0x08
28 #define SAA7191_REG_CKTS 0x09
29 #define SAA7191_REG_PLSE 0x0a
30 #define SAA7191_REG_SESE 0x0b
31 #define SAA7191_REG_GAIN 0x0c
32 #define SAA7191_REG_STDC 0x0d
33 #define SAA7191_REG_IOCK 0x0e
34 #define SAA7191_REG_CTL3 0x0f
35 #define SAA7191_REG_CTL4 0x10
36 #define SAA7191_REG_CHCV 0x11
37 #define SAA7191_REG_HS6B 0x14
38 #define SAA7191_REG_HS6S 0x15
39 #define SAA7191_REG_HC6B 0x16
40 #define SAA7191_REG_HC6S 0x17
41 #define SAA7191_REG_HP6I 0x18
42 #define SAA7191_REG_STATUS 0xff
45 #define SAA7191_STATUS_CODE 0x01
46 #define SAA7191_STATUS_FIDT 0x20
47 #define SAA7191_STATUS_HLCK 0x40
48 #define SAA7191_STATUS_STTC 0x80
53 #define SAA7191_LUMA_BYPS 0x80
55 #define SAA7191_LUMA_PREF 0x40
58 #define SAA7191_LUMA_BPSS_MASK 0x30
59 #define SAA7191_LUMA_BPSS_SHIFT 4
60 #define SAA7191_LUMA_BPSS_3 0x30
61 #define SAA7191_LUMA_BPSS_2 0x20
62 #define SAA7191_LUMA_BPSS_1 0x10
63 #define SAA7191_LUMA_BPSS_0 0x00
67 #define SAA7191_LUMA_CORI_MASK 0x0c
68 #define SAA7191_LUMA_CORI_SHIFT 2
69 #define SAA7191_LUMA_CORI_3 0x0c
70 #define SAA7191_LUMA_CORI_2 0x08
71 #define SAA7191_LUMA_CORI_1 0x04
72 #define SAA7191_LUMA_CORI_0 0x00
76 #define SAA7191_LUMA_APER_MASK 0x03
77 #define SAA7191_LUMA_APER_SHIFT 0
78 #define SAA7191_LUMA_APER_3 0x03
79 #define SAA7191_LUMA_APER_2 0x02
80 #define SAA7191_LUMA_APER_1 0x01
81 #define SAA7191_LUMA_APER_0 0x00
85 #define SAA7191_GAIN_COLO 0x80
88 #define SAA7191_GAIN_LFIS_MASK 0x60
89 #define SAA7191_GAIN_LFIS_SHIFT 5
90 #define SAA7191_GAIN_LFIS_3 0x60
91 #define SAA7191_GAIN_LFIS_2 0x40
92 #define SAA7191_GAIN_LFIS_1 0x20
93 #define SAA7191_GAIN_LFIS_0 0x00
98 #define SAA7191_STDC_VTRC 0x80
101 #define SAA7191_STDC_NFEN 0x08
103 #define SAA7191_STDC_HRMV 0x04
106 #define SAA7191_STDC_GPSW0 0x02
108 #define SAA7191_STDC_SECS 0x01
113 #define SAA7191_IOCK_HPLL 0x80
115 #define SAA7191_IOCK_OEDC 0x40
117 #define SAA7191_IOCK_OEHS 0x20
119 #define SAA7191_IOCK_OEVS 0x10
121 #define SAA7191_IOCK_OEDY 0x08
124 #define SAA7191_IOCK_CHRS 0x04
127 #define SAA7191_IOCK_GPSW2 0x02
130 #define SAA7191_IOCK_GPSW1 0x01
134 #define SAA7191_CTL3_AUFD 0x80
137 #define SAA7191_CTL3_FSEL 0x40
139 #define SAA7191_CTL3_SXCR 0x20
141 #define SAA7191_CTL3_SCEN 0x10
143 #define SAA7191_CTL3_OFTS 0x08
148 #define SAA7191_CTL3_YDEL_MASK 0x07
149 #define SAA7191_CTL3_YDEL_SHIFT 0
150 #define SAA7191_CTL3_YDEL2 0x04
151 #define SAA7191_CTL3_YDEL1 0x02
152 #define SAA7191_CTL3_YDEL0 0x01
158 #define SAA7191_CTL4_HRFS 0x04
161 #define SAA7191_CTL4_VNOI_MASK 0x03
162 #define SAA7191_CTL4_VNOI_SHIFT 0
163 #define SAA7191_CTL4_VNOI_3 0x03
164 #define SAA7191_CTL4_VNOI_2 0x02
165 #define SAA7191_CTL4_VNOI_1 0x01
166 #define SAA7191_CTL4_VNOI_0 0x00
172 #define SAA7191_CHCV_NTSC 0x2c
173 #define SAA7191_CHCV_PAL 0x59
176 #define SAA7191_INPUT_COMPOSITE 0
177 #define SAA7191_INPUT_SVIDEO 1
179 #define SAA7191_NORM_PAL 1
180 #define SAA7191_NORM_NTSC 2
181 #define SAA7191_NORM_SECAM 3
197 #define SAA7191_BANDPASS_MIN 0x00
198 #define SAA7191_BANDPASS_MAX 0x03
199 #define SAA7191_BANDPASS_DEFAULT 0x00
201 #define SAA7191_BANDPASS_WEIGHT_MIN 0x00
202 #define SAA7191_BANDPASS_WEIGHT_MAX 0x03
203 #define SAA7191_BANDPASS_WEIGHT_DEFAULT 0x01
205 #define SAA7191_CORING_MIN 0x00
206 #define SAA7191_CORING_MAX 0x03
207 #define SAA7191_CORING_DEFAULT 0x00
209 #define SAA7191_HUE_MIN 0x00
210 #define SAA7191_HUE_MAX 0xff
211 #define SAA7191_HUE_DEFAULT 0x80
213 #define SAA7191_VTRC_MIN 0x00
214 #define SAA7191_VTRC_MAX 0x01
215 #define SAA7191_VTRC_DEFAULT 0x00
217 #define SAA7191_FORCE_COLOUR_MIN 0x00
218 #define SAA7191_FORCE_COLOUR_MAX 0x01
219 #define SAA7191_FORCE_COLOUR_DEFAULT 0x00
221 #define SAA7191_CHROMA_GAIN_MIN 0x00
222 #define SAA7191_CHROMA_GAIN_MAX 0x03
223 #define SAA7191_CHROMA_GAIN_DEFAULT 0x00
225 #define SAA7191_LUMA_DELAY_MIN -0x04
226 #define SAA7191_LUMA_DELAY_MAX 0x03
227 #define SAA7191_LUMA_DELAY_DEFAULT 0x01
229 #define SAA7191_VNR_MIN 0x00
230 #define SAA7191_VNR_MAX 0x03
231 #define SAA7191_VNR_DEFAULT 0x00
233 #define SAA7191_CONTROL_BANDPASS (V4L2_CID_PRIVATE_BASE + 0)
234 #define SAA7191_CONTROL_BANDPASS_WEIGHT (V4L2_CID_PRIVATE_BASE + 1)
235 #define SAA7191_CONTROL_CORING (V4L2_CID_PRIVATE_BASE + 2)
236 #define SAA7191_CONTROL_FORCE_COLOUR (V4L2_CID_PRIVATE_BASE + 3)
237 #define SAA7191_CONTROL_CHROMA_GAIN (V4L2_CID_PRIVATE_BASE + 4)
238 #define SAA7191_CONTROL_VTRC (V4L2_CID_PRIVATE_BASE + 5)
239 #define SAA7191_CONTROL_LUMA_DELAY (V4L2_CID_PRIVATE_BASE + 6)
240 #define SAA7191_CONTROL_VNR (V4L2_CID_PRIVATE_BASE + 7)
242 #define DECODER_SAA7191_GET_STATUS _IOR('d', 195, struct saa7191_status)
243 #define DECODER_SAA7191_SET_NORM _IOW('d', 196, int)