]> 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)
commit82a07ace00666dd335500df449cf3157d528cdab
tree9836a03ce1699047d1a3d677c827bfe1b1d760be
parent412f1e94cb2116c82348e99a2fea02e1df1958ae
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