]> 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)
commit9999bb284c055bb4885038d64b64446bcef1b303
tree61c2b2e8625b2928155899879b7ef6c89b15eace
parentba5b892096ed659bed0596f2fa007624c485adb4
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