OSDN Git Service

[media] davinci: vpif_capture: cleanup raw camera support
authorKevin Hilman <khilman@baylibre.com>
Tue, 6 Jun 2017 23:37:40 +0000 (20:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 15:19:22 +0000 (12:19 -0300)
commitdde32d413447d7f12031d24c7898dd126e5eabe3
tree98cf25d32871e6f62703bed768063b35dd95a6ec
parent4a5f8ae50b66a40cd9cec8f72f5f64611504ddc1
[media] davinci: vpif_capture: cleanup raw camera support

The current driver has a handful of hard-coded assumptions based on its
primary use for capture of video signals.  Cleanup those assumptions,
and also query the subdev for format information and use that if
available.

Tested with 10-bit raw bayer input (SGRBG10) using the aptina,mt9v032
sensor, and also tested that composite video input still works from
ti,tvp514x decoder.  Both tests done on the da850-evm board with the
add-on UI board.

NOTE: Will need further testing for other sensors with different bus
formats.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpif_capture.c