diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-03-13 05:08:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:21 -0400 |
commit | 09e231b35173313cd92e27532e5028f2042dcee4 (patch) | |
tree | 3ecda063aa52f954d2f797921bdce131d7f1cc28 /drivers/media/video/soc_camera_platform.c | |
parent | 1cd3c0fa927084549005fc22e54d99684b314f14 (diff) |
V4L/DVB (11024): soc-camera: separate S_FMT and S_CROP operations
As host and camera drivers become more complex, differences between S_FMT and
S_CROP functionality grow, this patch separates them.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/soc_camera_platform.c')
-rw-r--r-- | drivers/media/video/soc_camera_platform.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/video/soc_camera_platform.c b/drivers/media/video/soc_camera_platform.c index 013ab06e3180..c48676356ab7 100644 --- a/drivers/media/video/soc_camera_platform.c +++ b/drivers/media/video/soc_camera_platform.c | |||
@@ -79,8 +79,14 @@ soc_camera_platform_query_bus_param(struct soc_camera_device *icd) | |||
79 | return p->bus_param; | 79 | return p->bus_param; |
80 | } | 80 | } |
81 | 81 | ||
82 | static int soc_camera_platform_set_crop(struct soc_camera_device *icd, | ||
83 | struct v4l2_rect *rect) | ||
84 | { | ||
85 | return 0; | ||
86 | } | ||
87 | |||
82 | static int soc_camera_platform_set_fmt(struct soc_camera_device *icd, | 88 | static int soc_camera_platform_set_fmt(struct soc_camera_device *icd, |
83 | __u32 pixfmt, struct v4l2_rect *rect) | 89 | struct v4l2_format *f) |
84 | { | 90 | { |
85 | return 0; | 91 | return 0; |
86 | } | 92 | } |
@@ -125,6 +131,7 @@ static struct soc_camera_ops soc_camera_platform_ops = { | |||
125 | .release = soc_camera_platform_release, | 131 | .release = soc_camera_platform_release, |
126 | .start_capture = soc_camera_platform_start_capture, | 132 | .start_capture = soc_camera_platform_start_capture, |
127 | .stop_capture = soc_camera_platform_stop_capture, | 133 | .stop_capture = soc_camera_platform_stop_capture, |
134 | .set_crop = soc_camera_platform_set_crop, | ||
128 | .set_fmt = soc_camera_platform_set_fmt, | 135 | .set_fmt = soc_camera_platform_set_fmt, |
129 | .try_fmt = soc_camera_platform_try_fmt, | 136 | .try_fmt = soc_camera_platform_try_fmt, |
130 | .set_bus_param = soc_camera_platform_set_bus_param, | 137 | .set_bus_param = soc_camera_platform_set_bus_param, |