mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
4be22b6a7f
commit
0e4c180d3e
2 changed files with 6 additions and 5 deletions
|
|
@ -30,6 +30,8 @@ struct soc_camera_device {
|
|||
struct device *pdev; /* Platform device */
|
||||
s32 user_width;
|
||||
s32 user_height;
|
||||
u32 bytesperline; /* for padding, zero if unused */
|
||||
u32 sizeimage;
|
||||
enum v4l2_colorspace colorspace;
|
||||
unsigned char iface; /* Host number */
|
||||
unsigned char devnum; /* Device number per host */
|
||||
|
|
|
|||
Loading…
Reference in a new issue