aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7191.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-02-27 07:05:10 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:10 -0400
commitcf4e9484f402c799fa25c9ffb7e9a3b620a3702d (patch)
tree5f7839009c8a66f4c1b5eaaf2c3c7365b515564d /drivers/media/video/saa7191.h
parentbabb7dc7776dd6ded4e1e6cb7acc34c25c0eb521 (diff)
V4L/DVB (10861): vino/indycam/saa7191: convert to i2c modules to V4L2.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7191.h')
-rw-r--r--drivers/media/video/saa7191.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/drivers/media/video/saa7191.h b/drivers/media/video/saa7191.h
index a2310da1940d..803c74d6066f 100644
--- a/drivers/media/video/saa7191.h
+++ b/drivers/media/video/saa7191.h
@@ -176,11 +176,9 @@
176#define SAA7191_INPUT_COMPOSITE 0 176#define SAA7191_INPUT_COMPOSITE 0
177#define SAA7191_INPUT_SVIDEO 1 177#define SAA7191_INPUT_SVIDEO 1
178 178
179#define SAA7191_NORM_AUTO 0
180#define SAA7191_NORM_PAL 1 179#define SAA7191_NORM_PAL 1
181#define SAA7191_NORM_NTSC 2 180#define SAA7191_NORM_NTSC 2
182#define SAA7191_NORM_SECAM 3 181#define SAA7191_NORM_SECAM 3
183#define SAA7191_NORM_AUTO_EXT 4 /* extended auto-detection */
184 182
185struct saa7191_status { 183struct saa7191_status {
186 /* 0=no signal, 1=signal detected */ 184 /* 0=no signal, 1=signal detected */
@@ -232,24 +230,16 @@ struct saa7191_status {
232#define SAA7191_VNR_MAX 0x03 230#define SAA7191_VNR_MAX 0x03
233#define SAA7191_VNR_DEFAULT 0x00 231#define SAA7191_VNR_DEFAULT 0x00
234 232
235#define SAA7191_CONTROL_BANDPASS 0 233#define SAA7191_CONTROL_BANDPASS (V4L2_CID_PRIVATE_BASE + 0)
236#define SAA7191_CONTROL_BANDPASS_WEIGHT 1 234#define SAA7191_CONTROL_BANDPASS_WEIGHT (V4L2_CID_PRIVATE_BASE + 1)
237#define SAA7191_CONTROL_CORING 2 235#define SAA7191_CONTROL_CORING (V4L2_CID_PRIVATE_BASE + 2)
238#define SAA7191_CONTROL_FORCE_COLOUR 3 /* boolean */ 236#define SAA7191_CONTROL_FORCE_COLOUR (V4L2_CID_PRIVATE_BASE + 3)
239#define SAA7191_CONTROL_CHROMA_GAIN 4 237#define SAA7191_CONTROL_CHROMA_GAIN (V4L2_CID_PRIVATE_BASE + 4)
240#define SAA7191_CONTROL_HUE 5 238#define SAA7191_CONTROL_VTRC (V4L2_CID_PRIVATE_BASE + 5)
241#define SAA7191_CONTROL_VTRC 6 /* boolean */ 239#define SAA7191_CONTROL_LUMA_DELAY (V4L2_CID_PRIVATE_BASE + 6)
242#define SAA7191_CONTROL_LUMA_DELAY 7 240#define SAA7191_CONTROL_VNR (V4L2_CID_PRIVATE_BASE + 7)
243#define SAA7191_CONTROL_VNR 8
244
245struct saa7191_control {
246 u8 type;
247 s32 value;
248};
249 241
250#define DECODER_SAA7191_GET_STATUS _IOR('d', 195, struct saa7191_status) 242#define DECODER_SAA7191_GET_STATUS _IOR('d', 195, struct saa7191_status)
251#define DECODER_SAA7191_SET_NORM _IOW('d', 196, int) 243#define DECODER_SAA7191_SET_NORM _IOW('d', 196, int)
252#define DECODER_SAA7191_GET_CONTROL _IOR('d', 197, struct saa7191_control)
253#define DECODER_SAA7191_SET_CONTROL _IOW('d', 198, struct saa7191_control)
254 244
255#endif 245#endif