[media] soc-camera: Support user-configurable line stride
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 Mar 2012 11:03:28 +0000 (08:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 19:12:54 +0000 (16:12 -0300)
commit914f05c8118e17d65c4626ae3ed2edcf79f00031
treeb41353c64be1394015f7c976fbafb299b61c21e8
parentb0a461ff1b476067c24131ea0b2a40571592f761
[media] soc-camera: Support user-configurable line stride

Add a capabilities field to the soc_camera_host structure to flag hosts
that support user-configurable line strides. soc_camera_try_fmt() then
passes the user-provided bytesperline and sizeimage format fields to
such hosts, and expects the host to check (and fix if needed) the
values.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[g.liakhovetski@gmx.de: fix a typo in mx2_camera.c]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx2_camera.c
drivers/media/video/soc_camera.c
include/media/soc_camera.h