[media] rcar-vin: move chip check for pixelformat support
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 15 Aug 2016 15:06:33 +0000 (12:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 23 Aug 2016 17:49:08 +0000 (14:49 -0300)
commitee9e2a525c825a5c9c358d4c8388242b81ba707f
treeb64ca33aadd296a9f92e27d5424ebf387e351f04
parent2fb5910c03606ecb2797c3dc6577a7cb30da8abe
[media] rcar-vin: move chip check for pixelformat support

The check for if the specific pixelformat is supported on the current
chip should happen in VIDIOC_S_FMT and VIDIOC_TRY_FMT and not when we
try to setup the hardware for streaming.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-dma.c
drivers/media/platform/rcar-vin/rcar-v4l2.c