linux_dsm_epyc7002/drivers/media/platform/atmel
Eugen Hristev 374d968ac7 media: atmel: atmel-isc-base: initialize the try_crop for the pads in try_fmt
When requesting format from sensor, some sensors call the
subdev_get_try_crop which for ISC was not properly initialized, and this
causes errors in determining proper image resolutions.
To accommodate for this, when trying a format (in try_fmt), first attempt
to obtain the framesize for this format from sensor.
In case this fails, use the maximum ISC width/height as try_crop, otherwise
provide the first size height/width from the sensor.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[hverkuil-cisco@xs4all.nl: changed {0} to {}]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2019-12-16 10:16:25 +01:00
..
atmel-isc-base.c media: atmel: atmel-isc-base: initialize the try_crop for the pads in try_fmt 2019-12-16 10:16:25 +01:00
atmel-isc-regs.h media: atmel: atmel-isc: reworked white balance feature 2019-05-21 07:14:02 -04:00
atmel-isc.h media: atmel: atmel-isc: fix i386 build error 2019-06-24 15:00:40 -04:00
atmel-isi.c media: atmel: atmel-isi: fix timeout value for stop streaming 2019-08-23 07:27:55 -03:00
atmel-isi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
atmel-sama5d2-isc.c media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile media: atmel: atmel-isc: split driver into driver base and isc 2019-06-21 16:36:11 -04:00