]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1e3a1504917b6246cbe3c09495e1352934f1d44
tree9836a03ce1699047d1a3d677c827bfe1b1d760be
parent65d287626197a1412ea26cf41792c801744a40b2
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