diff options
| author | Michael Hunold <hunold@linuxtv.org> | 2004-04-25 18:52:23 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-25 18:52:23 -0700 |
| commit | 9dab501baa8cab962e014213529c3dce960e2ef4 (patch) | |
| tree | fa81c60b3d88ce3ce52a60466e16b8038b6f9629 /include | |
| parent | 196c4ebdac1bcb919ff0c798526412d8f28239b7 (diff) | |
[PATCH] V4L: Update the saa7146 driver
- [DVB] saa7146 driver updates:
- remove bogus v_calc and h_calc parameters, which can be easily
retrieved from other values
- add class parameter to i2c initialization
- let resource handling provide more useful informations
- sanitize overlay/capture locking
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/saa7146.h | 2 | ||||
| -rw-r--r-- | include/media/saa7146_vv.h | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index 5e9f64e67bc8..e62f03fb4c5d 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h @@ -154,7 +154,7 @@ struct saa7146_dev }; /* from saa7146_i2c.c */ -int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate); +int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, unsigned int class, u32 bitrate); int saa7146_i2c_transfer(struct saa7146_dev *saa, const struct i2c_msg msgs[], int num, int retries); /* from saa7146_core.c */ diff --git a/include/media/saa7146_vv.h b/include/media/saa7146_vv.h index 50ab25907eec..60cd29e52f2d 100644 --- a/include/media/saa7146_vv.h +++ b/include/media/saa7146_vv.h @@ -44,11 +44,9 @@ struct saa7146_standard int v_offset; /* number of lines of vertical offset before processing */ int v_field; /* number of lines in a field for HPS to process */ - int v_calc; /* number of vertical active lines */ int h_offset; /* horizontal offset of processing window */ int h_pixels; /* number of horizontal pixels to process */ - int h_calc; /* number of horizontal active pixels */ int v_max_out; int h_max_out; @@ -104,6 +102,9 @@ struct saa7146_fh { unsigned int resources; /* resource management for device open */ }; +#define STATUS_OVERLAY 0x01 +#define STATUS_CAPTURE 0x02 + struct saa7146_vv { int vbi_minor; @@ -117,14 +118,17 @@ struct saa7146_vv int video_minor; + int video_status; + struct saa7146_fh *video_fh; + /* video overlay */ struct v4l2_framebuffer ov_fb; struct saa7146_format *ov_fmt; struct saa7146_overlay *ov_data; + struct saa7146_fh *ov_suspend; /* video capture */ struct saa7146_dmaqueue video_q; - struct saa7146_fh *streaming; enum v4l2_field last_field; /* common: fixme? shouldn't this be in saa7146_fh? |
