OSDN Git Service

[media] ov772x: Select the default format at probe time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 18 Jul 2012 13:58:19 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 15 Aug 2012 20:08:36 +0000 (17:08 -0300)
commitca9ef7fa21d6cf26e22c9ff1e00a5abeb2106555
treefb38fc309452a0a83b2d1b1ab13df36b9139e82c
parentedff996eb942ce5595e9b60a0e06586dcc41b19b
[media] ov772x: Select the default format at probe time

The format and window size are only initialized during the first g_fmt
call. This leaves the device in an inconsistent state after
initialization, which will cause problems when implementing pad
operations. Move the format and window size initialization to probe
time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/soc_camera/ov772x.c