media: atmel: atmel-isc: add checks for limiting frame sizes
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 13 Apr 2021 10:57:01 +0000 (12:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jun 2021 10:19:05 +0000 (12:19 +0200)
commit5122e8d15a0703b6d8bf6cb703536d29f8aa74cf
tree61c2b2e8625b2928155899879b7ef6c89b15eace
parentd5475b3c901a007e74544e7704a1c2107dbcc115
media: atmel: atmel-isc: add checks for limiting frame sizes

When calling the subdev, certain subdev drivers will overwrite the
frame size and adding sizes which are beyond the ISC's capabilities.
Thus we need to ensure the frame size is cropped to the maximum caps.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/atmel/atmel-isc-base.c