[media] coda: v4l2-compliance fix: overwrite invalid pixel formats with the current...
commit57625593589b51fbe713bcf3dbc97a8d92c2277f
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 30 Sep 2013 13:34:51 +0000 (30 10:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 28 Oct 2013 17:26:34 +0000 (28 15:26 -0200)
tree95deeacae3961b18f20e36b379d5c154e6f6d8cf
parent2e9e4f1182a001f263a2908c5f0115eacb3bd104
[media] coda: v4l2-compliance fix: overwrite invalid pixel formats with the current setting

This patch fixes the v4l2-compliance "TRY_FMT(G_FMT) != G_FMT" issue.
The driver now overwrites invalid formats with the current setting, using
coda_get_max_dimensions to find device specific max width/height.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda.c