media: rcar-vin: Add check that input interface and format are valid
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 16 Mar 2022 14:48:39 +0000 (15:48 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:18 +0000 (11:02 +0200)
commit78b3f9d75a629f66654903a5dec5636f8a7933d9
tree9836a03ce1699047d1a3d677c827bfe1b1d760be
parente386038aff5f602c4ae0b0e20273095b53be6135
media: rcar-vin: Add check that input interface and format are valid

Add a check to make sure the input interface (CSI-2 or parallel) allow
for the requested input bus format. If not inform the user and error out
rather then try to continue with incorrect settings.

While at it add the missing define for RGB666 that is not yet supported
in the driver but we can preemptively check for it in this context
already.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/renesas/rcar-vin/rcar-dma.c