]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ff3a9a550b99d3afaff3f3cfa73bcab413060c4
tree61c2b2e8625b2928155899879b7ef6c89b15eace
parent3298d5d176fb53a021f9dd40f4cefe60a04e9f73
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