[media] davinci: vpif_capture: drop compliance hack
authorKevin Hilman <khilman@baylibre.com>
Tue, 6 Jun 2017 23:37:38 +0000 (20:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 15:15:56 +0000 (12:15 -0300)
commit6e3520f2e20262fbf913ffff14f1d345c7b82c25
tree6884d6d734ae30dcaa24cc407c8ebfff93d8b6f4
parentcc20ba4ed8576abfa10a17e81cb4521f474624f0
[media] davinci: vpif_capture: drop compliance hack

Capture driver silently overrides pixel format with a hack (according to
the comments) to pass v4l2 compliance tests.  This isn't needed for
normal functionality, and works for composite video and raw camera capture
without.

In addition, the hack assumes that it only supports raw capture with a
single format (SBGGR8) which isn't true.  VPIF can also capture 10- and
12-bit raw formats as well.  Forthcoming patches will enable VPIF
input with raw-camera support and has been tested with 10-bit format
from the aptina,mt9v032 sensor.

Any compliance failures should be fixed with a real fix.

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