aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSergio Aguirre <saaguirre@ti.com>2011-03-07 19:49:48 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 18:41:55 -0400
commit0e4c180d3e2cc11e248f29d4c604b6194739d05a (patch)
treecb505788e38273b39a190fdd7080ea8e9c1e2af5 /include
parent4be22b6a7f2f2b7eb6f7aab8902068a367cda8ba (diff)
[media] v4l: soc-camera: Store negotiated buffer settings
This fixes the problem in which a host driver sets a personalized sizeimage or bytesperline field, and gets ignored when doing G_FMT. Signed-off-by: Sergio Aguirre <saaguirre@ti.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/soc_camera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 6e96b2657b5c..f80b5372baf3 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -30,6 +30,8 @@ struct soc_camera_device {
30 struct device *pdev; /* Platform device */ 30 struct device *pdev; /* Platform device */
31 s32 user_width; 31 s32 user_width;
32 s32 user_height; 32 s32 user_height;
33 u32 bytesperline; /* for padding, zero if unused */
34 u32 sizeimage;
33 enum v4l2_colorspace colorspace; 35 enum v4l2_colorspace colorspace;
34 unsigned char iface; /* Host number */ 36 unsigned char iface; /* Host number */
35 unsigned char devnum; /* Device number per host */ 37 unsigned char devnum; /* Device number per host */